Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.46 KB

File metadata and controls

64 lines (41 loc) · 1.46 KB

Home

Function name : GdipCreateFromHDC2

Group: GDI+ Graphics - Library: gdiplus


Returns handle to the Graphics object that is associated with a specified device context and a specified device.


Code examples:

Custom GDI+ class

Declaration:

GpStatus WINGDIPAPI GdipCreateFromHDC2(
    HDC hdc,
    HANDLE hDevice,
    GpGraphics **graphics
)
  

FoxPro declaration:

DECLARE INTEGER GdipCreateFromHDC2 IN gdiplus;
	INTEGER   hdc,;
	INTEGER   hDevice,;
	INTEGER @ graphics  

Parameters:

hdc [in] Handle to a device context that will be associated with the new Graphics object.

hdevice [in] Handle to a device that will be associated with the new Graphics object.

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, GdipCreateFromHDC functions.