DCT Lightfoot v3 API specification

javax.microedition.lcdui
Class Image

java.lang.Object
  |
  +--javax.microedition.lcdui.Image

public class Image
extends Object

This holds an image


Method Summary
static Image createImage(byte[] data, int offset, int length)
          Create an image from some data
static Image createImage(Image source)
          Create an image from another image
static Image createImage(int width, int height)
          Create an image of a width and height
static Image createImage(java.lang.String name)
          Create an image from the named resource
 Graphics getGraphics()
          Get the graphics for an image
 int getHeight()
          Get the height
 int getWidth()
          Get the width
 boolean isMutable()
          Return if this is mutable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createImage

public static Image createImage(byte[] data,
                                int offset,
                                int length)
Create an image from some data

Parameters:
data - the data
offset - The offset into the data
length - The length of the data
Returns:
the new image

createImage

public static Image createImage(Image source)
Create an image from another image

Parameters:
source - The source
Returns:
the new image which is immutable

createImage

public static Image createImage(int width,
                                int height)
Create an image of a width and height

Parameters:
width - The width
height - The height
Returns:
the image

createImage

public static Image createImage(java.lang.String name)
                         throws IOException
Create an image from the named resource

Parameters:
name - The resource
Returns:
the image
Throws:
IOException - if there is an error

getGraphics

public Graphics getGraphics()
Get the graphics for an image

Returns:
the graphics

getHeight

public int getHeight()
Get the height

Returns:
the height

getWidth

public int getWidth()
Get the width

Returns:
the width

isMutable

public boolean isMutable()
Return if this is mutable

Returns:
true if it is mutable

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification