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 to rotate image using latitude and longitude

hello i want to rotate image view by latitude and longitude suppose i have lat/LNG: (33.6343541968021,73.06278146803379) now i want my image-view(needle) point this location how i can do this? i am doing this public void…
0
votes
1 answer

rotate image by 360 degrees using ontouch

I want to rotate an image by 360 degrees using onTouch. With the code i had used the maximum rotation i am getting is 120 degrees. The code i had used is this is the code in onTouch event case MotionEvent.ACTION_MOVE: newRot = rotation(event); …
Chowdary102
  • 106
  • 2
  • 12
0
votes
1 answer

Image rotate - resize canvas based on image height and width

I want to rotate image but resize the canvas based on image's width and height. please see my code in JSFiddle. I am actually rotating an image based on canvas but my canvas has fixed height and width so the image is just rotating inside. all i want…
orbnexus
  • 737
  • 1
  • 9
  • 38
0
votes
1 answer

Java game rotate image and axis

i have made a game with a spaceship but i have a problem with moving of it. this is the script: public class spaceship { private final local_client local_client; private final int startX; private final int startY; private final int…
terzi_matte
  • 175
  • 1
  • 10
0
votes
0 answers

counting number of rotations of matrix

is there any way to count the number of rotations of a matrix ? i've tried to count the number of times the angle reaches a specific angle (say 60 degree) but it wasn't accurate and it didn't count all the times i've tried also to take a copy of…
Fawzinov
  • 569
  • 2
  • 9
  • 25
0
votes
1 answer

Rotate an animated GIF (ImageIcon) using AffineTransform

I am trying to rotate an animated gif stored in an ImageIcon using an AffineTransform. The result is that the image does not get drawn. Here's my code: AffineTransform trans = AffineTransform.getRotateInstance(imgYaw, img.getImage().getWidth(null) /…
0
votes
2 answers

Rotate PNG Images and Update back to Mysql

I wanted to rotate PNG images which is coming from DB and again update back to mysql. $DataImage=$rs[0]['file_image']; // image from DB as base 64 My Rotate Function ob_start(); header( 'Content-Type: image/png' ); $destImage =…
0
votes
0 answers

Not getting exact image rotation in php using imagerotate()

I am using imagerotate() and imagecreatefromstring() function to rotate the base64 image and update back to MySQL. This is my code $imageData = $rs[0]['image_data'];//image from DB $im = imagecreatefromstring($imageData); $degrees =…
0
votes
2 answers

imagerotate when using move_uploaded_file

Trying to counter the issues with uploaded images from IOS devices where the exif orientation is kept causing them to be rotated sometimes. I found many snippets on using imagerotate to counter this problem but trying to implement them. For the…
Lovelock
  • 7,689
  • 19
  • 86
  • 186
0
votes
1 answer

Rotate Button Or Image From One Point To another

I want to create a rotating Button Which can be rotate from my given points I tried this but it gives angles and i want to give points self.theImageView.transform=CGAffineTransformMakeRotation (angle); angle=30; I also tried this but it has…
zohaibkhan
  • 227
  • 1
  • 2
  • 12
0
votes
1 answer

Image data as NSData, rotate without recompression (lossless) then save as NSData rotated image

My application download JPEG image from server as NSData, check for other params (in json response) and if that image should be rotated according to some flag, I need to rotate image and store it to file for later use. I would like to rotate image's…
Josef Rysanek
  • 377
  • 3
  • 12
0
votes
1 answer

CSS - rotation of text on top of image

I have a client who would like an end user to upload an image which in this instance is super imposed beneath a diary as per the image below. The end user can scale the photo and move it up/down and left/right, they can also add text (span inside a…
djcamo
  • 297
  • 2
  • 3
  • 14
0
votes
2 answers

Rotation/clipping issue with images/SVGs and Chrome

I'm trying to rotate an svg and running into an issue with Chrome (version 36) where the rotated image is clipped. http://jsfiddle.net/7ehkdufj/5/ var rotation = 0; $('#rotate').on('click', function() { rotation = (rotation + 60) % 360; …
nimblegorilla
  • 1,183
  • 2
  • 9
  • 19
0
votes
1 answer

2D image rotation javascript to work in all browsers. Help needed to fix my code

I'm trying to have a simple image rotate back and forward on mouse click. I've been experimenting with jQuery. The code I've written works fine in Safari, Firefox and Chrome. The problem is with IE 9, 11 and most likely 10 which I don't have to…
0
votes
0 answers

How To Animate A UIImage Around The Bounds Of Another UIImage

I have 2 Images. 1 Outer Image and 1 Inner Image. I am trying to get the outer Image to rotate around the bounds of the inner Image. I am kind of close with the code I have (shown below) but I can't get the outer Image to perfectly rotate around the…