This method of the ImageX Class creates a graphics context for drawing to an off-screen image.
public Graphics getGraphics();
Returns a Graphics object.