Use encoded images
The net.rim.device.api.system.EncodedImage class encapsulates encoded images of various formats. The BlackBerry device supports the following image formats: .gif, .png, .wbmp, and .jpeg. Only BlackBerry devices with color screens support .jpeg images.
^ Note: The JPEGEncodedImage class requires a signature that is not available.
Use EncodedImage subclasses, PNGEncodedImage and WBMPEncodedImage, to access specific properties of .png and .wbmp images, respectively. For example, PNGEncodedImage provides methods to retrieve the bit depth of the image, the bit depth of the alpha channel, and the color type.
An application can directly access images that are added to its project or to a library project on which it depends in the BlackBerry Integrated Development Environment (BlackBerry IDE).
Post a comment