java.awt
Interface PaintContext


public interface PaintContext

Since:
1.1
See Also:
Paint

Method Summary
 void dispose()
          Release the resources allocated for the paint.
 ColorModel getColorModel()
          Return the color model of this context.
 Raster getRaster(int x, int y, int w, int h)
          Return a raster containing the colors for the graphics operation.
 

Method Detail

dispose

void dispose()
Release the resources allocated for the paint.


getColorModel

ColorModel getColorModel()
Return the color model of this context. It may be different from the hint specified during createContext, as not all contexts can generate color patterns in an arbitrary model.

Returns:
the context color model

getRaster

Raster getRaster(int x,
                 int y,
                 int w,
                 int h)
Return a raster containing the colors for the graphics operation.

Parameters:
x - the x-coordinate, in device space
y - the y-coordinate, in device space
w - the width, in device space
h - the height, in device space
Returns:
a raster for the given area and color