Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.01 KB

GdipGetImageGraphicsContext.md

File metadata and controls

50 lines (33 loc) · 1.01 KB

Home

Function name : GdipGetImageGraphicsContext

Group: GDI+ Image - Library: gdiplus


Creates a Graphics object that is associated with an Image object.


Code examples:

Custom GDI+ class

Declaration:

GpStatus WINGDIPAPI GdipGetImageGraphicsContext(
	GpImage *image,
	GpGraphics **graphics
)  

FoxPro declaration:

DECLARE INTEGER GdipGetImageGraphicsContext IN gdiplus;
	INTEGER   img,;
	INTEGER @ graphics
  

Parameters:

image [in] Pointer to an Image object that will be associated with the new Graphics object.


Return value:

Returns GpStatus value, 0 means success.


Comments:

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.