All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 22-05-2003, 08:32 AM
roddefou roddefou is offline
Registered User
 
Join Date: Mar 2003
Posts: 5
roddefou is on a distinguished road
rotating a java.awt.frame

Hi ,
I'm trying to write an application but i need to rotate my frame so i could a 320x180

how could i do it?

  #2  
Old 26-05-2003, 09:23 PM
gunnar-p800 gunnar-p800 is offline
Registered User
 
Join Date: Dec 2002
Posts: 39
gunnar-p800 is on a distinguished road
Re: rotating a java.awt.frame

Quote:
Originally Posted by roddefou
Hi ,
I'm trying to write an application but i need to rotate my frame so i could a 320x180

how could i do it?
One way is to create an Image of the desired width,height of the displayable screen area. Then you use operations available for drawing strings and graphics on that bitmap and finally you rotate the bitmap 90 degrees and paint it on screen. You need to come up with the rotation code yourself, typically this is about reorienting the pixels line by line by copying them between two arrays. This can result in slow operation if updates need to happen frequently such as if you want to allow the user to edit text in your rotated bitmap.. You need as a developer to "think in 90 degrees angle" since there is no way to specify the actual native view or frame so that normal graphic operations automatically would give a 90 degrees angled result.
__________________
Gunnar Forsgren
Senior Java Engineer
Sony Ericsson Mobile Communications AB, Sweden
Ads
 

Bookmarks

Tags
javaawtframe, rotating

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT. The time now is 02:23 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy