Graphics::Graphics(Image*) method (gdiplusgraphics.h)
Creates a Graphics::Graphics object that is associated with an Image object.
void Graphics( [in] Image *image );
Pointer to an Image object that will be associated with the new Graphics::Graphics object.
This constructor fails if the Image object is based on a metafile that was opened for reading. The Image::Image(file) and Metafile::Metafile(file) constructors open a metafile for reading. To open a metafile for recording, use a Metafile constructor that receives a device context handle.
This constructor also fails if the image uses one of the following pixel formats:
|Minimum supported client||Windows XP, Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||gdiplusgraphics.h (include Gdiplus.h)|