orientation

How can I flip/rotate a PrintDocument in .NET ?

I have a document that I want to be flipped / rotated 180 degrees when printed. (This is due to the orientation of label stock in the printer). There is a property PrintDocument.PrinterSettings.LandscapeAngle but it is read only. I think this property is influenced by the printer driver and therefore not 'settable'. Is there a nice w...

iPhone Development - My application crashes when I change the orientation

Hi, I'm bumping into this problem where my application gets EXC_BAD_ACCESS error and stucks/stops. I'm using "Rotate Left" & "Rotate Right" options of simulator to simulate the orientation change behavior. What can be the possible reasons for this error? Since I'm not getting details about the error, I can't trace it. All my controlle...

iPhone SDK: Locking the orientation

I've seen it on a previous app (forgetting the app name), where you could lock the current orientation of the screen. Is there an easy way for this to be done, for example, simply using a button. ...

Using Cups Reverse Orientation on a Postscript file

When using the lp -o orientation-requested=6 in CUPS to print a postscript file, the first page is reversed 180 degrees and then the next page is back to 0 orientation. Third page has the 180 degree rotation and fourth page back to 0 and so on. I need each page in the file to be reversed 180 degrees. Any suggestions on what to try ...

does iphone 3.0 update support forcing landscape mode from a web app?

The new iPhone 3.0 OS is coming out soon. Does anyone know if it allows web apps to force landscape mode by a meta tag or javascript? ...

How to find Angle of Rotation of iphone?

Hi to all I want to calculate angle of rotation when I am rotating the iphone from portrait mode to Landscape right or Landscape left but in YX plane. In my game I want to rotate one object respect to iphone but in opposite direction. If I will move iphone from portrait mode to Landscape right by 30 degree then I want to move object 30 ...

NavigationController landscape and potrait problem

i have two viewcontroller one support orientation another not,but when i rotate in second viewcontroller (support orientation)to landscape,and back to first viewcontroller(not support orientation) at the mean time second view still remain landscape it will change the first view become landscape as well but it not suppose to be landscape ...

How can I change the orientation of the label on a TPageControl?

I'm new to Delphi (again - I used Delphi back in 1994). I now have Delphi 2009 Pro. Coming from Java, I find the object inheritance very obscure. My users want tabbed pages with the tabs on the left. But, the TPageControl doesn't allow the tab label direction or orientation to be changed. They want the words on the tabs to read to...

Changing modal UIView's orientation to landscape mode on iPhone

Hi All, Im having a modal view displayed on top of tab bar controller the orientation of tab bar controller and my modal view is currently in portrait mode, i need to only change my modal views orientation to landscape mode, i Tried usign UIDevice Orientation but no success it only works when .plist has UIDeviceOrientationKey, and i ...

C# Listview Item Text Orientation

I'm designing an application using a Listview container with LargeIcons as the view type. I need a way to change the text orientation of the Listview Items with respect to the icon. For example: I would like to have to text displayed to the right of the icon in the Listview container. Is there a way to do this? Thanks, -Sean! ...

Iphone Landscape mode switching to Portraite mode on loading new controller

My app launches in landscape mode correctly and works great: - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if(interfaceOrientation == UIInterfaceOrientationPortrait) return NO; if(interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIIn...

Is there a way to convert the coordinate system after a change to Landscape Orientation?

In a view-based iPhone OS application, I change the orientation from the initial portrait orientation to a landscape orientation (UIInterfaceOrientationLandscapeRight). But now the x,y origin (0,0) is in the lower-left corner (instead of the usual upper-left) and each time I want to do something that involves coordinates I must re-calcul...

UIImage Picker autorotation feature disappeared suddenly

I was using UIImagePickerController without any problem. Before when I was taking a picture in the landscape mode, the picture in the Preview (when the buttons Retake and Use Photo were present) was always automatically rotated so as to appear correctly in the portrait mode. But now when I use the UIImagePickerController the preview mo...

How do I specify font height at different orientations?

The common way to create a font with GDI is to use the desired point size and the target device's vertical resolution (DPI) like this: LOGFONT lf = {0}; lf.lfHeight = -MulDiv(point_size, GetDeviceCaps(hdc, LOGPIXELSY), 72); ... HFONT hfont = CreateFontIndirect(&lf); Assuming the default MM_TEXT mapping mode, this converts point_size i...

How to rotate from vertical to horizontal view in custom iPhone app

Hi Guys, I have one view controller set with one graph view and segmented control inside it. How to make the view rotate to horizontal? Also, is it possible to load another view for horizontal orientation? Thx in advance, Mladen ...

Detect iPhone screen orientation

I'm wanting to detect the orientation of the iPhone at 45 degree increments. Ideally I'd like to be able to get the angle of orientation along any axis. The detection I need to do is similar to how Trism for the iPhone flashes an arrow towards the current bottom position of the screen when orientation changes. I have something coded up...

Android WebView handling orientation changes

Just started working with the webview. The issue is performance following rotation. The WebView has to reload the page, which can be a bit tedious. What's the best of of handling an orientation change without reloading the page from source each time? ...

iPhone Orientation Expressed as Rotation

Ola Folks, This might not be the right place for this. Let me know where I should post if I should post it elsewhere. I want to get the orientation of the device. I am thinking I can use something like this: float fAngleX = atan2(acceleration.y, acceleration.z); float fAngleY = atan2(acceleration.x, acceleration.z); float fAngleZ = ...

How can I let the user in a simply GUI change the orientation of the contextual menu?

Have a checkbox. I'm trying to figure out how to let this checkbox change the default left to right of the special contextual menu I built. As the users have dual screen, and each person uses a different monitor, the contextual menu often gets split onto the next screen. I'd like to let them choose the direction, thereby keeping it on th...

Algorithm to detect photo orientation

I would like to rotate photos automatically, even when EXIF metadata about the image orientation is not available. Are there any good algorithms for detecting the orientation of a photo? The images are photographs from a digital camera. The algorithm doesn't have to work perfectly, but any reduction in the amount of human interaction r...