[]
        
(Showing Draft Content)

C1.Util.DX.ViewportF.-ctor

ViewportF Constructor

ViewportF(float, float, float, float)

Initializes a new instance of the ViewportF struct.

Declaration
public ViewportF(float x, float y, float width, float height)
Parameters
Type Name Description
float x

The x coordinate of the upper-left corner of the viewport in pixels.

float y

The y coordinate of the upper-left corner of the viewport in pixels.

float width

The width of the viewport in pixels.

float height

The height of the viewport in pixels.

ViewportF(float, float, float, float, float, float)

Initializes a new instance of the ViewportF struct.

Declaration
public ViewportF(float x, float y, float width, float height, float minDepth, float maxDepth)
Parameters
Type Name Description
float x

The x coordinate of the upper-left corner of the viewport in pixels.

float y

The y coordinate of the upper-left corner of the viewport in pixels.

float width

The width of the viewport in pixels.

float height

The height of the viewport in pixels.

float minDepth

The minimum depth of the clip volume.

float maxDepth

The maximum depth of the clip volume.

ViewportF(RectF)

Initializes a new instance of the ViewportF struct.

Declaration
public ViewportF(RectF bounds)
Parameters
Type Name Description
RectF bounds

A bounding box that defines the location and size of the viewport in a render target.