Graphics.copyArea

Graphics.copyArea

Class Overview | Class Members | This Package | All Packages

Syntax
public abstract void copyArea( int x, int y, int width, int height, int dx, int dy )
Parameters
x
the x coordinate of the source rectangle.
y
the y coordinate of the source rectangle.
width
the width of the source rectangle.
height
the height of the source rectangle.
dx
the horizontal distance to copy the pixels.
dy
the vertical distance to copy the pixels.
Description
Copies an area of the component by a distance specified by dx and dy. From the point specified by x and y, this method copies downwards and to the right. To copy an area of the component to the left or upwards, specify a negative value for dx or dy. If a portion of the source rectangle lies outside the bounds of the component, or is obscured by another window or component, copyArea will be unable to copy the associated pixels. The area that is omitted can be refreshed by calling the component's paint method.