Specify the display size of an encoded image
-
Import the required class.
import net.rim.device.api.system.EncodedImage;
-
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.
Was this information helpful? Send us your comments.