Class D2D1HwndRenderTarget
Renders drawing instructions to a window.
Implements
Inherited Members
D2D1RenderTarget.CreateBitmapBrush(D2D1Bitmap, in D2D1BitmapBrushProperties, in D2D1BrushProperties)
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
[SecurityCritical]
public class D2D1HwndRenderTarget : D2D1RenderTarget, IDisposable
Constructors
| Edit this page View SourceD2D1HwndRenderTarget(nint)
Initializes a new instance of the D2D1HwndRenderTarget class.
Declaration
public D2D1HwndRenderTarget(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD2D1HwndRenderTargetGuid
The interface GUID.
Declaration
public static readonly Guid D2D1HwndRenderTargetGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| 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(in D2D1SizeU)
Changes the size of the render target to the specified pixel size.
Declaration
public void Resize(in D2D1SizeU pixelSize)
Parameters
| Type | Name | Description |
|---|---|---|
| D2D1SizeU | pixelSize | The new size of the render target in device pixels. |