RenderContextBase.ComputePickMatrix Method

Computes the matrix to restrict the rendering to the given rectangle.
Public Overridable Function ComputePickMatrix( _ 
ByVal rectangle As RectangleF, _ 
ByVal viewportSize As Size, _ 
ByVal viewFrame As Integer() _ 
) As Double()
This language is not supported or no code example is available.
public virtual double[] ComputePickMatrix( 
RectangleF rectangle
Size viewportSize
int[] viewFrame 
)
This language is not supported or no code example is available.

Parameters

rectangle
RectangleF

The rectangle to render

viewportSize
Size

The size of the viewport

viewFrame
int[]

The real viewport bounds (for Direct3D)

Return Value

double[]

The pick matrix.

Remarks
 
The rectangle is mapped to the lower left corner of the viewport

.NET Framework

Supported in: 4.8

In this article

Definition