DeviceContextHdcScope
struct DeviceContextHdcScope
Helper to scope getting a HDC from a IHdcContext object. Releases the HDC when disposed, unlocking the parent IHdcContext object.
Also saves and restores the state of the HDC.
public DeviceContextHdcScope(IHdcContext deviceContext, bool applyGraphicsState = true, bool saveHdcState = false)
Gets the HDC from the given deviceContext.
public DeviceContextHdcScope(IHdcContext deviceContext, ApplyGraphicsProperties applyGraphicsState, bool saveHdcState = false)
Prefer to use #ctor.