This routine gets a System.Drawing.Graphics object with the image selected into it. The graphics object may then be drawn upon using the standard System.Drawing.Graphics drawing methods. Do not call Dispose on this Graphics object directly but instead call the ReleaseGraphics method. An exception will be generated if more than one call to GetGraphics is done without a ReleaseGraphics being called. The ImageX object may have a new bit depth after a GetGraphics/ReleaseGraphics set of calls.