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?
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?
[quote="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?[/quote]
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.