Toolkit.createImage

Toolkit.createImage

Class Overview | Class Members | This Package | All Packages

Syntax 1
public abstract Image createImage( ImageProducer producer )
Parameters
producer
the image producer to be used.
Returns
an image with the specified image producer.
Description
Creates an image with the specified image producer.

See Also
Image, ImageProducer, createImage



Syntax 2
public Image createImage( byte imagedata[] )
Parameters
imagedata
an array of bytes, representing image data in a supported image format.
Returns
an image.
Description
Creates an image which decodes the image stored in the specified byte array.

The data must be in some image format, such as GIF or JPEG, that is supported by this toolkit.



Syntax 3
public abstract Image createImage( byte imagedata[], int imageoffset, int imagelength )
Parameters
imagedata
an array of bytes, representing image data in a supported image format.
imageoffset
the offset of the beginning of the data in the array.
imagelength
the length of the data in the array.
Returns
an image.
Description
Creates an image which decodes the image stored in the specified byte array, and at the specified offset and length. The data must be in some image format, such as GIF or JPEG, that is supported by this toolkit.