01-14-2012 05:47 AM
Hi, Does anyone knows how to rotate a Bitmap resource?
Let's say I need to create an analog clock app, with its hour, minute and second hands.
At somepoint the app will get current time, and draws the hand bitmaps at certain angle.
Some possible solutions I've found so far are
1. The ImageManipulator Class:
http://supportforums.blackberry.com/t5/Java-Develo
2. The graphics.drawTexturedPath ():
http://www.blackberry.com/developers/docs/5.0.0api
3. and manually draws 60 different bitmaps for each angle.
Could anyone suggest me which solution is best for my project requirement? and explain the pros and cons of the solution? Thank you for your time.
01-20-2012 10:55 AM
If you want the image to look good, with shading and the like, then 60 images is the way to go. Attempting to rotate an image will result in a less than perfect representation. Using a small clock you might get away with this, but not if you are filling the screen.