Display an encoded image

  1. Import the required class.
    import net.rim.device.api.ui.component.BitmapField;
  2. Invoke BitmapField.setImage() to assign the encoded image to a BitmapField.
  3. Invoke add() to add the BitmapField to the screen.
    BitmapField field = new BitmapField(); 
    field.setImage(image); 
    add(field);
Previous topic: Encode an image

Was this information helpful? Send us your comments.