Table of Contents

Method GetDC

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

GetDC(DCInitializeMode)

Retrieves the GDI device context associated with this Direct2D device context.

nint GetDC(DCInitializeMode mode)

Parameters

mode DCInitializeMode

A value that specifies whether the device context should be cleared.

Returns

nint

The GDI device context associated with this Direct2D device context.

Remarks

Calling this method flushes the Direct2D device context.

This command can only be called after BeginDraw() and before EndDraw().

ReleaseDC(in RectInt32?) must be called once for each call to GetDC(DCInitializeMode).