Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.27 KB

File metadata and controls

57 lines (37 loc) · 1.27 KB

Home

Function name : GdipCreateFromHDC

Group: GDI+ Graphics - Library: gdiplus


Returns handle to the Graphics object associated with the device context.


Code examples:

Custom GDI+ class

Declaration:

GpStatus WINGDIPAPI GdipCreateFromHDC(
    HDC hdc,
    GpGraphics **graphics
)
  

FoxPro declaration:

DECLARE INTEGER GdipCreateFromHDC IN gdiplus;
	INTEGER   hdc,;
	INTEGER @ graphics  

Parameters:

hdc [in] Identifies window, control, device or memory device context.

graphics [out] Handle to the Graphics object.


Return value:

Returns GpStatus value, 0 means success.


Comments:

The Graphics class provides methods for drawing lines, curves, figures, images, and text. A Graphics object stores attributes of the display device and attributes of the items to be drawn.

When no longer needed the Graphics object must be deleted with the GdipDeleteGraphics function.

See also: GdipCreateFromHWND, GdipCreateFromHDC2 functions.