Interface IGdiInteropDeviceContext
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
Provides access to a device context that can accept GDI drawing commands.
See ID2D1GdiInteropRenderTarget
for more information.
public interface IGdiInteropDeviceContext : IObjectRef, IIsDisposed, IDisposable, IInternalImpl
- Inherited Members
- Extension Methods
Remarks
To retrieve an instance of this interface, call CreateRef<IGdiInteropDeviceContext>()
on
any IDeviceContext. The device context must be GDI-compatible.
Note that the CreateRef()
call will always succeed; if the device context doesn't support the
interface, calling GetDC(DCInitializeMode) will fail.
Methods
- GetDC(DCInitializeMode)
Retrieves the GDI device context associated with this Direct2D device context.
- ReleaseDC(in RectInt32?)
Indicates that drawing with the GDI device context retrieved using the GetDC(DCInitializeMode) method is finished.