Toolkit.createImage
Class Overview | Class Members |
This Package |
All Packages
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
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.
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.