How to create image buttons that scale across multiple resolutions?
Is there a standard methodolgy for scaling image buttons using one image size across multiple blackberry phone model screen resolutions ?
I'm resizing开发者_如何转开发 encoded iamges based on display width. So to resize an image to a quarter length of the screen I do -
imageLength = Dislay.getWidth / 4;
Is there something better ?
Thanks
I'm not sure I understand what you need.
Do you want to scale an image? If so, take a look at scaleImage32(int, int) method. Also, you should use methods from the Fixed32 class to calculate image sizes.
If you only want to scale a button, maybe this answer will help you.
精彩评论