Function Reference


_GDIPlus_GraphicsGetDC

Gets a handle to the device context of the Graphics object

#include <GDIPlus.au3>
_GDIPlus_GraphicsGetDC ( $hGraphics )

Parameters

$hGraphics Handle to a Graphics object

Return Value

Success: a handle DC of the Graphics object.
Failure: 0 and sets the @error flag to non-zero, @extended may contain GPSTATUS error code ($GPIP_ERR* see GPIPlusConstants.au3).

Remarks

Each call to the _GDIPlus_GraphicsGetDC() should be paired with a call to the _GDIPlus_GraphicsReleaseDC().
Do not call any methods of the Graphics object between the calls.

Related

_GDIPlus_GraphicsReleaseDC

See Also

Search GdipGetDC in MSDN Library.