blackberry java backgroung image resize -


how automatically set size of image ?(for different screen size of different phone's)

     bitmap bitmaporig = bitmap.getbitmapresource("icon.png");                  // create bitmap of arbitrary size      int scaledx = 360;      int scaledy = 415;      bitmap bitmapscaled = new bitmap(scaledx, scaledy);       bitmaporig.scaleinto(bitmapscaled , bitmap.filter_lanczos);                              bitmaporig.scaleinto(bitmapscaled , bitmap.filter_bilinear, bitmap.scale_to_fill);                             bitmapfield bitmapfieldscaled2 = new bitmapfield(bitmapscaled , field.focusable); 

check these links:

http://supportforums.blackberry.com/t5/java-development/resizing-a-bitmap-using-scaleimage32-instead-of-setscale/m-p/255454

increase height widht of image per bb screen size


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -