Class D2D1HwndRenderTarget
Renders drawing instructions to a window.
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public sealed class D2D1HwndRenderTarget : D2D1RenderTarget, IDisposable, ID2D1Releasable
Properties
| Edit this page View SourceHandle
Gets an handle representing the D2D1 object interface.
Declaration
public override object Handle { get; }
Property Value
Type | Description |
---|---|
object |
Overrides
| Edit this page View SourceHwnd
Gets the HWND associated with this render target.
Declaration
public nint Hwnd { get; }
Property Value
Type | Description |
---|---|
nint |
Methods
| Edit this page View SourceCheckWindowState()
Indicates whether the HWND associated with this render target is occluded.
Declaration
public D2D1WindowStates CheckWindowState()
Returns
Type | Description |
---|---|
D2D1WindowStates | A value that indicates whether the HWND associated with this render target is occluded. |
Resize(D2D1SizeU)
Changes the size of the render target to the specified pixel size.
Declaration
public void Resize(D2D1SizeU pixelSize)
Parameters
Type | Name | Description |
---|---|---|
D2D1SizeU | pixelSize | The new size of the render target in device pixels. |