Group: GDI+ Image - Library: gdiplus
GpStatus WINGDIPAPI GdipGetImageGraphicsContext(
GpImage *image,
GpGraphics **graphics
)
DECLARE INTEGER GdipGetImageGraphicsContext IN gdiplus;
INTEGER img,;
INTEGER @ graphics
image [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.