ImageList.drawImage

Overview | Methods | This Package | All Packages

ImageList.drawImage

Draws the specified image.

Syntax

public void drawImage( Graphics g, int x, int y, int width, int height, int rop, int index )

Parameters

g

A Graphics object that is used to draw the image.

x

The x-coordinate of the upper-left corner of the bounding rectangle to draw the image in.

y

The y-coordinate of the upper-left corner of the bounding rectangle to draw the image in.

width

The width, in pixels, of the image to draw.

height

The height, in pixels, of the image to draw.

rop

A integer that represents a raster operation code. These codes define how the color data for the source rectangle will be combined with the color data for the destination rectangle to achieve the final color. Possible values are defined in the RasterOp class.

index

The zero-based index of the image to draw.