rotate

Rotate MPMoviePlayerController to Landscape - iPhone SDK

Hello everyone, I am trying to rotate my MPMoviePlayerController to landscape view, but it always stays in portrait mode. I am doing this in a UIViewController and I still can't rotate my MPMoviePlayerController when I am in full screen mode. Do I have to do something to the shouldAutorotatetoOrientation method? If anyone knows how to d...

UIWebView - adjust on rotate?

Hello, I have a UIWebView which loads a url. In MobileSafari this webpage will adjust when the handset is rotated to the landscape position. In my UiWebView it just stays in portrait - is the a property I need to add to allow this to occur? Cheers! ...

OpenGL when turning Android Phone

What is it called ( what term should i google) when flipping/tilting the phone, so that the view rotates when running android? My (OpenGL) application crashes when I do this, are there some certain steps you should do when handling OpenGL when this occures? Is there something else I might want to think about? ...

Rotating image. Animation list or animated rotate? (Android)

I want to create a rotating progress image, and wonder what's the best way to proceed. I can make it work with an animation list with for example 12 images changing every 100ms. This works fine, but it's quite tedious to create 12 images or for every size and resolution: <animation-list xmlns:android="http://schemas.android.com/apk/res/...

"refresh" view on device rotation

Hi there I have my view set up in viewDidLoad. All the different frames and such of the subviews have been defined relative to self.view. Therefore it doesn't matter what size self.view is the subviews will always shrink or expand to fit (as it were). So when I rotate my device I want the view to rotate (easy enough with shouldAutoRota...

Problems rotating a sprite using drawtexture (OpenGl ES Android)

Hi guys! I´m trying to rotate a sprite using drawtexture but nothing happens. I´m using the following code: gl.glRotatef(90, 0, 0, 1.0f); gl.glBindTexture(GL10.GL_TEXTURE_2D, TextureID); (GL11Ext) gl).glDrawTexfOES(x, y, z, width, height); The texture is drawn to the screen but it is not rotated... Anyone? :) ...

Android - Rotate Bitmap (bigger than Cavas) but centered with Canvas

Hi, I'm trying to rotate a bitmap (which is bigger than Canvas) keeping it centered with Canvas and repeatedly in time, in order to make it appears as spinning. I wanted to post an image explaining the situation, but I can't (not enough reputations; it's a pitty because I've spent a lot of time doing it :( ). I hope you understand what's...

Rotate a UI Button in iPhone SDK

Quick and hopefully obvious question. I have a progmatically created button in my iPhone app that I wish to rotate 45 degrees clockwise, named buttonuq , how can I do this? ...

How do I rotate a canvas without disturbing the coordinate system in Android?

I am trying to rotate a canvas with canvas.rotate and move an object on it at the same time. The problem is that with the rotation, the coordinate system of the canvas rotates as well, so I get cases when my object is supposed to be moving along the y axis, but the y axis is rotated on place of the x axis. It is a mess. Is there a way to...

Drawable Rotating around its center Android

I am getting strange results with the following code: iv = (ImageView) findViewById(R.id.iv); iv.setImageResource(R.drawable.spinner_white_76); Animation a = new RotateAnimation(0.0f, 360.0f, Animation.RELATIVE_TO_SELF, iv.getDrawable() .getIntrinsicWidth() / 2, Animation.RELATIVE...

Cocos2d iPhone: Rotate Sprite using Accelerometer

Hi, I'm trying to rotate a sprite using the accelerometer. when I tilt right, I want him to rotate slightly to the right, and when I tilt left, I want him to rotate slightly to the left... Thanks in advance, Reed ...

Convert values form Sensor.TYPE_ORIENTATION to Euler angles?

I have to write a compass app in Android. The only thing the user sees on the screen is a cube with a red wall which has to point north. This is not important. What's important is that I need to rotate that cube accordingly to the rotation of the device itself so that the red wall continues to point north no matter how the phone is being...

jquery random rotate

I have a div with a bunch of images (20) and i like a little rotation on some let say +-2dg i have try that with no success... all image are rotated equally /* By default, we tilt all our images -2 degrees */ #gallery2 img { -webkit-transform: rotate(-2deg); -moz-transform: rotate(-2deg); } /* Rotate all even images 2 degr...

Rotate sprite javascript

I have a sprite animation, a small cannon rendered using a 3D app. I have exactly 360 frames for a 360 degree turn. Each image has a 100x100 pixel size. So basically what I am trying todo is when I click anywhere in the page, the barrel of the cannon needs to rotate to point at the mouse cursor, sound simple maybe but I can't really get...

flex 4 remove Rotate easing

I'm trying to animate (rotate) an image in flex4 but it seems that flex is adding easing to my animation by default. How can I over ride this so my rotate doesn't have any easing. Here the line of code I'm using <s:Rotate angleFrom="0" angleTo="1080" duration="10000" autoCenterTransform="true" /> ...

Transform (rotate) a UIBarButtonItem

Hello, Does anybody know how to transform a UIBarButtonItem ? I tried this but with no results :( It's not working on both UIBarButtonItem and its customview. [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:5.0f]; CGAffineTransform myTransform = CGAffineTransformMakeRotation(M_PI_2); UIBarButtonItem * currentI...

Problem rotating UIImage

My code below, anyone know what is happening? Sorry about the incomplete information, the image just desapear! - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *imCaptured = [info valueForKey:@"UIImagePickerControllerOriginalImage"]; CGImageRef cgirCro...

Android Dialog with dynamic text (API level < 8) killed on rotation

I want to create a dialog with a string that I build at runtime. It looks like API level 8 allows you to call showDialog with a bundle, but I have to write an app that will run on the older OSs. How do I create a dialog with something like a simple error string and make sure it doesn't die when I rotate the screen. I realize if I over...

Rotating bits of any integer in C

Pass a integer 2 to this function and then return a integer which is 4 x = 2; x = rotateInt('L', x, 1); (left shift the bits by 1) Example: 00000010 -> rotate left by 1 -> 00000100 but if I pass this: x = rotateInt('R', x, 3); it will return 64, 01000000 Here is the code, can someone correct the error... thanks int rotateInt...

Silverlight - Possible to not rotate parent window overlay when ChildWindow rotates?

I've got a ChildWindow that rotates 180 degrees when I click a button. I'm also using a ChildWindow.OverlayBrush to dim out the parent window. This of course rotates as well when the ChildWindow rotates. Is there anyway to dim out the parent window without it rotating with the ChildWindow? ...