Questions tagged [rotation]

A rotation is a circular movement of an object around a center (or point) of rotation. On a mobile device, it indicates the change of orientation.

A three-dimensional object rotates always around an imaginary line called a rotation axis. If the axis is within the body, and passes through its center of mass the body is said to rotate upon itself, or spin. A rotation about an external point, e.g. the Earth about the Sun, is called a revolution or orbital revolution, typically when it is produced by gravity.

Mathematically, a rotation is a rigid body movement which, unlike a translation, keeps a point fixed. This definition applies to rotations within both two and three dimensions (in a plane and in space, respectively.)

A rotation is commonly represented using , a rotation or .

On a mobile device, it indicates the change of orientation.

12013 questions
24
votes
7 answers

UINavigationController and autorotation

I have a UIViewController that returns YES in shouldAutorotateToInterfaceOrientation: for UIDeviceOrientationPortrait and NO for everything else. With that view on the top of the stack, I use pushViewController:animated: to push a new…
Steven Canfield
  • 7,312
  • 5
  • 35
  • 28
24
votes
4 answers

How can I rotate display only in landscape mode in android?

I want that my View rotates only in landscape mode, clockwise and counterclockwise. I read about the only counterclockwise for android < 2.2 and that's not a problem, my App will be +2.2 for now. I modify my manifest to catch Configuration…
rubdottocom
  • 8,110
  • 10
  • 39
  • 59
24
votes
3 answers

Specify image filling color when rotating in python with PIL and setting expand argument to true

I'm trying to rotate an image in Python using PIL and having the expand argument to true. It seems that when the background of my image is black, the resulting image saved as a bmp will be a lot smaller than if I have a white background for my…
Alex B
  • 1,575
  • 5
  • 16
  • 19
24
votes
5 answers

UIImageView Gestures (Zoom, Rotate) Question

I would like to make 2 operations to an UIImageView zoom, rotate, I have 2 problems: A. I make an operation for zoom for ex. and when I try to make rotation the UIImageView is set to initial size, I would like to know how to keep the zoomed…
john Stilkowicz
  • 297
  • 1
  • 5
  • 12
24
votes
7 answers

Detect rotation of Android home screen

I have an App Widget which, when it updates, fetches an image having dimensions to match the widget, and places that image into an ImageView (via RemoteViews). It works just fine. But for devices that support rotation of the home screen (and I'm…
drmrbrewer
  • 11,491
  • 21
  • 85
  • 181
24
votes
2 answers

Javascript function to Rotate a base 64 image by X degrees and return new base64

I want a javascript function that will rotate a base64 image by X degrees and return the new base64 image. Example I wish to call a function with something like: var newImg = rotateImg(imageData, 90); //which should return a base64 string of the…
d0mmmy
  • 405
  • 1
  • 3
  • 6
24
votes
2 answers

How to get the position of element transformed with css rotate

I'm having a problem with getting the position of a div after rotate filter is applied to it. I have the position of one end, its height, and the angle by which it is rotated, but after checking what this filter actually does on MDN ("[cos(angle)…
sasklacz
  • 3,610
  • 10
  • 39
  • 58
23
votes
5 answers

GIve css3 rotate to a DIV in Chrome then the background-attachment:fixed creating bug

My background-attachment:fixed is working fine. But when I define CSS3 rotate on that DIV and scroll down then background-attachment:fixed stops working. Check this http://jsfiddle.net/P3jS4/ Right now I am working on chrome18. When you remove the…
sandeep
  • 91,313
  • 23
  • 137
  • 155
23
votes
8 answers

Java: Rotating Images

I need to be able to rotate images individually(in java). The only thing I have found so far is g2d.drawImage(image, affinetransform, ImageObserver ). Unfortunately, I need to draw the image at a specific point, and there is no method with an…
Jimmt
  • 852
  • 2
  • 11
  • 29
23
votes
5 answers

jQuery rotate/transform

I'd like to use this function to rotate then stop at a particular point or degree. Right now the element just rotates without stopping. Here's the code: