Metafile.getGraphics

Overview | Methods | This Package | All Packages

Metafile.getGraphics

Retrieves a Graphics object that you can use to paint to this image.

Syntax

public Graphics getGraphics()

Return Value

Returns a Graphics object for the Metafile object. If a Graphics object does not already exist for this object, one is created. If you have created a Graphics object through a previous call to getGraphics, the existing Graphics object is returned.

Remarks

When you create a Graphics object instance using the Metafile object's getGraphics method, the Graphics object's drawing methods draw to the surface of the Metafile object itself.