Specify the display size of an encoded image

  1. Import the required class.
    import net.rim.device.api.system.EncodedImage;
  2. Invoke EncodedImage.scaleImage32(int scaleX, int scaleY). The passed scale value parameters must be net.rim.device.api.math.Fixed32 numbers (0 < scale < 1 for upscaling, and scale > 1 for downscaling). scaleImage32() creates a new EncodedImage instead of modifying the current one.
Previous topic: Display an encoded image

Was this information helpful? Send us your comments.