This method imports a Java image object.

Syntax

int IMG_decompress_bitmap(java.awt.Image img, int bits_pix);

example

IMG_decompress_bitmap example:

java.awt.Image img;int xsize, ysize;

if (myPanel1.Simage == null && myPanel1.Sann == null) return; xsize = myPanel1.Simage.getWidth();
ysize = myPanel1.Simage.getHeight(); img = this.createImage(xsize,ysize); Graphics g = img.getGraphics();
myPanel1.Simage.IMG_decompress_bitmap(img,1); myPanel1.Simage.IMG_display_bitmap(g,0,0,xsize,ysize); myPanel1.Sann = null;myPanel1.repaint(),

Remark

IMG_decompress_bitmap(java.awt.Image, int) method variables:

Variable Description
IMG Java image object from which to import data.
bits_pix Destination bits per pixel desired. Data from Java image objects is returned as 24 bits, but you can convert to 1-bit or 8-bit if desired. For color, use 24-bits.

Returns

Returns the status of the Java image object. A value of 0 indicates success. Any value less than zero is a RasterMaster error code. See RasterMaster Error Codes for a list of error codes.