Overview | Methods | Fields | This Package | All Packages
Renders the cursor to a Graphics object, stretching the cursor to fill specified dimensions.
Syntax
protected void drawStretchTo( Graphics g, Rectangle imageRect, Rectangle targetRect, int rop )
Parameters
g
The Graphics object to which to draw the cursor.
imageRect
A Rectangle object that specifies the cursor region to draw.
targetRect
A Rectangle object that specifies the area to which to draw the cursor.
rop
A numerical ROP code that describes how to draw the source cursor to the target.
Remarks
The drawStretchTo and drawTo methods are used by the Graphics object for all image rendering. For more information on how the Graphics object uses these methods, see the Graphics object's drawImage method.
If the area specified in imageRect is smaller than the area specified in targetRect, the source cursor is stretched to fill the specified area. If the area specified in imageRect is larger than that specified in targetRect, the image is shrunk.