rotate

WPF integrating with a web cam and rotating the video

is this possible? ...

rotating bitmaps. In code.

Is there a faster way to rotate a large bitmap by 90 or 270 degrees than simply doing a nested loop with inverted coordinates? The bitmaps are 8bpp and typically 2048*2400*8bpp Currently I do this by simply copying with argument inversion, roughly (pseudo code: for x = 0 to 2048-1 for y = 0 to 2048-1 dest[x][y]=src[y][x]; (In...

Vector rotation by vector

Possible Duplicate: C++: Rotating a vector around a certain point I have 3 points and a vector. I need to rotate the vector around point B by the angle ABC. How would I do this? ...

Trying to rotate text for a groupbox

I'm trying to create a groupbox-like element in XAML (for a Silverlight 2 app) but with a twist. Normally a groupbox would consist of a border, with the main content placed inside the border, and a header content placed over the border itself. What I'm trying to do is place the header text over the left side border, rotated 270 degree...

Class for move, scale and rotate, of a uiimageview

Hi Everyone, I'm creating a subclass of UIImageView that detects touches, and will move, rotate and scale the image based on the touches. However, I really feel like I'm reinventing the wheel here, and it's driving me nuts. Shouldn't this already exist somewhere? Does anyone have any examples, or links to a class that is already doin...

.NET pie chart: how to add text to slices and rotate chart

The code below creates a 24 slice pie chart. How do I: Add text labels to each slice a la "Wheel of Fortune". Rotate the pie chart? I want it to spin like "Wheel of Fortune". private void DrawPieChart() { Graphics g = this.CreateGraphics(); g.Clear(this.BackColor); Rectangle rect = new Rectangle(0, 0, 300, 300); float...

How can I get log4j to delete old rotating log files?

How can I get log4j to delete old rotating log files? I know I can set up automated jobs (cron for UNIX and scheduled task for Windows), but I want it cross platform, and I want it in our application's log configuration as a part of our application, rather than in separate code outside in OS specific scripting languages. Our applicatio...

How to use the jquery.rotate and jquery.cycle plugins together

I have a series of photos (3 series actually) that need to cycle, which the jQuery cycle plugin does nicely for me. My problem is I also want to rotate them (rotate as in turn) by a few degrees each in varying directions on page load, to achieve a 'scattered' look. jQuery Rotate does this nicely too ... my problem is I can't get both r...

C#, GDI+ - Why are my rectangles truncated?

When I run the following code: private void button1_Click(object sender, EventArgs e) { Bitmap b = new Bitmap(300, 400); using (Graphics g = Graphics.FromImage(b)) { g.FillRectangle(Brushes.Black, new Rectangle(0, 0, 300, 400)); } b.RotateFlip(RotateFlipType.Rotate90FlipNone);...

Change reference point when rotating image in IE using MatrixFilter

I've found that you can rotate an image in IE using the MatrixFilter, examples can be found on MSDN but the rotation point seems to move about as you increase the angle. ...

Transformation (rotation) of image using matrix - design-time vs. run-time rendering results

Hi, I have a 48x48 image which is rotated using a transformation matrix. For some reason, the rotated image in design-time differs from the rotated image in run-time as you can see from this screenshot (design-time on the left, run-time on the right): It might be a little bit difficult to spot, but if you look closely at the right e...

Scale/Rotate a button in interface

I need to rotate a button by 30 degrees in iphones sdk interface builder, how do you do that??? Thank you in advance ...

My rotated image doesn't have sharp edges

I am rotating my image with the following code: CGAffineTransform rotate = CGAffineTransformMakeRotation( [ratio floatValue] ); [imageView setTransform:rotate]; But it doesn't have sharp edges, does someone knows a solution for this? Here's the link to the image i get: link ...

iPhone Dev - keeping interface rotation

(Just so you know ,I'm learning to develop for iPhone without Interface Builder) I have an app with a root view controller, a blue view controller and yellow view controller. The root VC lazy-loads the blue and yellow VC's and displays the blue VC's view first, and then switches to the other one when a button in the toolbar at the bottom...

iPhone dev - Manually rotate view

How can I manually rotate a view using the autoresizingMasks, as if the user had rotated the phone and it had auto-rotated. Also I want it to be instant, no animation. I you want to know why I need this, look at my other question at http://stackoverflow.com/questions/1219988/iphone-dev-keeping-interface-rotation. Thanks!! ...

10 degrees rotation image cut off

I rotate my image with: UIImage *image = [UIImage imageNamed:@"doneBtn.png"]; CGImageRef imgRef = image.CGImage; CGFloat width = CGImageGetWidth(imgRef); CGFloat height = CGImageGetHeight(imgRef); CGAffineTransform transform = CGAffineTransformIdentity; CGRect bounds = CGRectMake(0, 0, width, height); transform = CGAffineTransformRota...

OpenGL ES glRotatef performing shear instead of rotate?

I am able to draw a sprite on the screen of an iPhone, but when I try to rotate it I am getting some weird results. It seems to be stretching the sprite in the y direction more the closer the sprite gets to pointing down the y-axis (90 and 270 degrees). It displays correctly when pointing down the x and -x axes (0 and 180 degrees). It is...

JQuery UI Rotating Tabs & Events

I'm working with JQuery UI (rotating tabs) and I'd like to know how to stop the cycling when an onclick event occurs on one of the navigation tabs. $(document).ready(function(){ $("#sws_featured > ul").tabs({fx:{opacity: "toggle"}}) .tabs("rotate", 5000,true); }); I tried adding ...

I need to rotate an image

I need to rotate an image that is passed to a function as an array of BitmapFrames. the finished product needs to be saved as a BitmapFrame as well so I can send it to my Export-Image function. Help? [Cmdlet(VerbsData.ConvertTo, "Rotate")] public class RotateCmdlet : PSCmdlet { private BitmapFrame[] bFrame, outFrame; private Bit...

iPhone Screen Rotation: Can I enforce 90 degree rotations?

My iPhone app rotates fine in the simulator but when I deploy it on a physical device, rotating is very very sensitive. How can I fix this issue and make sure the screen rotates only when a 90 degree angle is made? ...