Specify the decoding mode for an image
-
Import the required class.
import net.rim.device.api.system.EncodedImage;
-
Invoke
EncodedImage.setDecodeMode() using one of the
following modes as a parameter:
- Use
DECODE_ALPHA to decode an alpha channel, if one
exists (this is the default mode).
- Use
DECODE_NATIVE to force decoding of the bitmap
image to the native bitmap image type of the BlackBerry® Device Software.
- Use
DECODE_READONLY to mark the decoded bitmap image
as read-only.
Was this information helpful? Send us your comments.