[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.DeviceContextRenderTarget

Class DeviceContextRenderTarget

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1DCRenderTarget

[Guid("1c51bc64-de61-46fd-9899-63a5d8f03950")]
public class DeviceContextRenderTarget : RenderTarget, IDisposable, IUnknown
Inheritance
object
DeviceContextRenderTarget
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

DeviceContextRenderTarget(IntPtr)

Initializes a new instance of the DeviceContextRenderTarget class.

public DeviceContextRenderTarget(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

BindDeviceContext(IntPtr, RectL)

HRESULT ID2D1DCRenderTarget::BindDC([In] const HDC hDC,[In] const RECT* pSubRect)

public void BindDeviceContext(IntPtr hDC, RectL subRectRef)

Parameters

hDC System.IntPtr
subRectRef RectL

Create(Factory, ref RenderTargetProperties)

Creates a render target that draws to a Windows Graphics Device Interface (GDI) device context.

public static DeviceContextRenderTarget Create(Factory factory, ref RenderTargetProperties properties)

Parameters

factory Factory

an instance of Factory

properties RenderTargetProperties

The rendering mode, pixel format, remoting options, DPI information, and the minimum DirectX support required for hardware rendering. To enable the device context (DC) render target to work with GDI, set the DXGI format to B8G8R8A8_UNorm and the alpha mode to Premultiplied or D2D1_ALPHA_MODE_IGNORE. For more information about pixel formats, see {{Supported Pixel Formats and Alpha Modes}}.

Returns

DeviceContextRenderTarget

Operators

explicit operator DeviceContextRenderTarget(IntPtr)

Performs an explicit conversion from System.IntPtr to DeviceContextRenderTarget.

public static explicit operator DeviceContextRenderTarget(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

DeviceContextRenderTarget