Function _GDIPlus_GraphicsGetDC

Function Reference


Gets a handle to the device context of the Graphics object

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


$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 ($GPID_ERR*).


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.



See Also

Search GdipGetDC in MSDN Library.