Class Direct2DPanel
Class Direct2DPanel. Implements the Panel
Inherited Members
Namespace: VisioForge.Core.D2DRenderer
Assembly: VisioForge.Core.dll
Syntax
public class Direct2DPanel : Panel, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
Constructors
Direct2DPanel()
Initializes a new instance of the Direct2DPanel class.
Declaration
public Direct2DPanel()
Properties
MaintainAspectRatio
Gets or sets a value indicating whether to maintain aspect ratio.
Declaration
[Browsable(true)]
public bool MaintainAspectRatio { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Methods
Clear()
Clears this instance.
Declaration
public void Clear()
Dispose(bool)
Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Overrides
OnResize(EventArgs)
Raises the Resize event.
Declaration
protected override void OnResize(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| EventArgs | e | An EventArgs that contains the event data. |
Overrides
PushFrame(nint, uint, uint, uint)
Pushes the frame.
Declaration
public void PushFrame(nint rgbaDataPtr, uint width, uint height, uint stride)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | rgbaDataPtr | The rgba data PTR. |
| uint | width | The width. |
| uint | height | The height. |
| uint | stride | The stride. |
PushFrame(VideoFrameX)
Pushes the frame.
Declaration
public void PushFrame(VideoFrameX frame)
Parameters
| Type | Name | Description |
|---|---|---|
| VideoFrameX | frame | The frame. |
SetMinimizedState(bool)
Sets the state of the minimized.
Declaration
public void SetMinimizedState(bool minmized)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | minmized | if set to |