Table of Contents

Class GdiInteropRenderTarget

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("e0db51c3-6f77-4bae-b3d5-e47509b35838")]
public class GdiInteropRenderTarget : ComObject
Inheritance
GdiInteropRenderTarget

Constructors

GdiInteropRenderTarget(nint)

public GdiInteropRenderTarget(nint nativePtr)

Parameters

nativePtr nint

Methods

GetDC(DeviceContextInitializeMode)

Retrieves the device context associated with this render target.

public nint GetDC(DeviceContextInitializeMode mode)

Parameters

mode DeviceContextInitializeMode

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

Returns

nint

When this method returns, contains the device context associated with this render target. You must allocate storage for this parameter.

Remarks

Calling this method flushes the render target.

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

Note??In Windows?7 and earlier, you should not call GetDC between PushAxisAlignedClip/PopAxisAlignedClip commands or between PushLayer/PopLayer. However, this restriction does not apply to Windows?8 and later.?

ReleaseDC must be called once for each call to GetDC.

ReleaseDC()

Indicates that drawing with the device context retrieved using the {{GetDC}} method is finished.

public void ReleaseDC()

Remarks

ReleaseDC must be called once for each call to {{GetDC}}.

ReleaseDC(RawRectangle?)

Indicates that drawing with the device context retrieved using the GetDC method is finished.

public void ReleaseDC(RawRectangle? update)

Parameters

update RawRectangle?

No documentation.

Remarks

ReleaseDC must be called once for each call to GetDC.

Operators

explicit operator GdiInteropRenderTarget(nint)

public static explicit operator GdiInteropRenderTarget(nint nativePtr)

Parameters

nativePtr nint

Returns

GdiInteropRenderTarget