DX9ToolsR4 - Created by: X

DX9Graphics Constructor (Control, Int32, Int32, Format, Int32)

Creates a new instance of this class.

[Visual Basic]
Overloads Public Sub New( _
   ByVal Target As Control, _
   ByVal Width As Integer, _
   ByVal Height As Integer, _
   ByVal Depth As Format, _
   Optional ByVal Adapter As Integer = 0 _
)
[C#]
public DX9Graphics(
   Control Target,
   int Width,
   int Height,
   Format Depth,
   int Adapter
);

Parameters

Target
Reference to the control that the DX9Graphics class will render to.
Width
The width of the display mode to use.
Height
The height of the display mode to use.
Depth
The display format of the display mode to use.
Adapter
The index of the display adapter to use.

Exceptions

Exception TypeCondition
DX9ToolsBaseError Will throw a DX9ToolsBaseError Exception if there was a problem during initilization.
DX9ToolsModeNotAvailible Will throw a DX9ToolsModeNotAvailible Exception if the mode is not availible.

See Also

DX9Graphics Class | CBX.Libs.DX9ToolsR4 Namespace | DX9Graphics Constructor Overload List