GdipCreateFromHDC

 

 

Description

Creates a Graphics object that is associated with a specified device context.

Syntax

GpStatus WINGDIPAPI GdipCreateFromHDC(

    HDC hdc,

    GpGraphics **graphics

);

PowerBASIC Syntax

DECLARE FUNCTION GdipCreateFromHDC ( _

    BYVAL hDC AS DWORD, _

    BYREF graphics AS DWORD _

) AS LONG

Parameters

 

hdc

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

graphics

[out] Pointer to a variable that receives a pointer to the new created Graphics object.

Remarks

When you use this function to create a Graphics object, make sure that the Graphics object is deleted before the device context is released.

 

Valid HTML 4.01 Transitional