Questions tagged [image-rotation]

Image rotation is performing a geometric rotation with certain angle on a particular image.

Image rotation is performing a geometric rotation with certain angle on a particular image. An image can be rotated by a positive angle or negative angle, which will rotate the image clockwise or counterclockwise. Rotating an image by 360 degrees or -360 degrees will actually result in the same image as the original image, while rotating on 180 or -180 degrees will display an inverted copy of the original image.

844 questions
0
votes
1 answer

how i can rotate image by array of byte in java?

I have array of byte for image , and I want to rotate image by this array , this is my code : BufferedImage img = ImageUtil.load(inputImagePath); WritableRaster raster = img .getRaster(); DataBufferByte data = (DataBufferByte)…
safana
  • 65
  • 1
  • 9
0
votes
1 answer

Get current RotationAngle while Animation is running on Android

I'm rotating an ImageView by using an Animation defined by a XML file.
Machado
  • 14,105
  • 13
  • 56
  • 97
0
votes
2 answers

need help rotating a jpg image

Can anyone help me figure out how to make my JButton (jbt1) rotate my image which is a jpg file (wheelof.jpg) for a set amount of time? I have been trying to figure this out for a while and no luck looking for any suggestions. Thanks import…
420
  • 11
  • 1
0
votes
1 answer

Rotation around different anchorPoint and position makes image jump to new position first

I'm doing a rotation animation on a view and want it to rotate around the view's center X and bottom Y. I change the anchorPoint and position of the layer and run the animation. Here's my code: - (void)viewDidLoad { [super viewDidLoad]; …
0
votes
1 answer

Aligning 2 layouts after setting rotationX in Android

I'm having trouble with aligning two RelativeLayouts after I set a rotation on both of them. I want to create a 3D-like feel (a gas stove with an oven) like this: . Basically I have 2 rounded square shapes with circular progress bars in them. I use…
Frank D.
  • 1,306
  • 1
  • 13
  • 23
0
votes
0 answers

How can I rotating a line not at its end point?

I had been doing some image rotation using Pillow (PIL) in an application I am developing. Unfortunately I am not going to be able to get the performance I want rotating images. I am going back to the drawing board and going to attempt to just draw…
Husar
  • 413
  • 1
  • 6
  • 17
0
votes
1 answer

Rotate an image based on reference point

I have the code that will rotate my image like a "spinner" based on its geometric center... however because the image itself is asymmetrical, i wish to rotate it about a particular reference point in terms of (x,y) coordinates of the UIImageView.…
joey
  • 49
  • 7
0
votes
1 answer

Issue with orientation of Image captured in landscape mode with GPUImageStillCamera

I am developing an Application where I am capturing image in landscape mode when device orientation is OFF. I am using GPUImageStillCamera for capturing image. But I'm getting issue in rotation of image. Issue is, When I capture image in landscape…
0
votes
1 answer

CGImageRef rotation distorted image

Have following code for rotation: CGFloat angleInRadians = angle * M_PI/180.0; CGFloat width = CGImageGetWidth(imgRef); CGFloat height = CGImageGetHeight(imgRef); CGRect imgRect = CGRectMake(width, height, width, height); …
iiFreeman
  • 5,165
  • 2
  • 29
  • 42
0
votes
1 answer

Rotate Image in ImageView

In my app, the image is captured from the camera and then it displays in a ImageView I've done this approach successfully, but when my image is displayed in Imageview, Image display after rotate. I want to rotate Image and then Display in ImageView.…
Trusha Savsani
  • 489
  • 1
  • 11
  • 31
0
votes
1 answer

Rotate and move UIImageView at the same time

Read other questions on this subject but they didn't help much. I'm trying to move the UIImageView with this... I want it to orbit around a point: - (void)orbit { orbitAngle -= orbitSpeed; float x = stillObject.frame.origin.x + orbitRadius *…
0
votes
1 answer

Using NSAffineTransform to rotate NSImage results in a file twice the size

I'm using the following code to flip (rotate by 180 degrees) an NSImage. But the new image is twice the size (MBs, not dimensions) of the original when saved to disk. I want it to be approximately the same as the original. How can I accomplish this?…
0
votes
0 answers

Why portrait images from gallery are being saved to Parse as landscape?

I found the below code from the answer of @Haresh Chhelana and modified it a little, in order to rotate the photo chose from gallery OR taken by the camera using Android mobile phone, before saving it to Parse cloud. When I take a picture from…
0
votes
0 answers

Image not rotating perfectly around center

So I have a picturebox with a background image of size 123x123 pixels. Everytime the image is clicked I make it rotate by a certain angle using the function below. //The original image to rotate. private readonly Bitmap _origPowerKnob =…
Nolemonpledge
  • 139
  • 1
  • 2
  • 11
0
votes
2 answers

Rotating image to Mobile's Orientation when capturing with camera :Android

I am building an Android application where I click a photograph from my mobile's camera and display it in a ImageView it automatically gets rotated by 90 degrees counter-clockwise.I want to display it in the orientation in which it is clicked by the…
psbits
  • 1,787
  • 5
  • 19
  • 34