DECLAREINTEGER GdipGetImageGraphicsContext IN gdiplus;
INTEGER @ graphics
[in] Pointer to an Image object that will be associated with the new Graphics object.
Returns GpStatus value, 0 means success.
The technique of constructing a Graphics object based on an image works only for certain image formats. For example, you cannot construct a Graphics object based on an image that has a color depth of 4 bits per pixel.
Word Index links for the GdipGetImageGraphicsContext :