Method GetHdc
GetHdc()
Gets the handle to the device context associated with this Graphics. The following values are returned by wxWidgets backend: on Windows the return value is an HDC, on macOS it is a CGContextRef and on wxGTK it will be a GdkDrawable.
public virtual nint GetHdc()
Returns
- nint
Handle to the device context associated with this Graphics. A value of Zero is returned if the DC does not have anything that fits the handle concept.
Remarks
Call the ReleaseHdc(nint) method to release the device context handle when it is no longer needed.