Eyeshot 10 WPF API Reference
ComputePickMatrix Method (RenderContextBase)

WPF Assembly > devDept.Graphics Namespace > RenderContextBase Class : ComputePickMatrix Method
The rectangle to render
The size of the viewport
The real viewport bounds (for Direct3D)
Computes the matrix to restrict the rendering to the given rectangle.
Syntax
'Declaration
 
Public Overridable Function ComputePickMatrix( _
   ByVal rectangle As RectangleF, _
   ByVal viewportSize As Size, _
   ByVal viewFrame() As Integer _
) As Double()
public virtual double[] ComputePickMatrix( 
   RectangleF rectangle,
   Size viewportSize,
   int[] viewFrame
)

Parameters

rectangle
The rectangle to render
viewportSize
The size of the viewport
viewFrame
The real viewport bounds (for Direct3D)

Return Value

The pick matrix.
Remarks
The rectangle is mapped to the lower left corner of the viewport
See Also

Reference

RenderContextBase Class
RenderContextBase Members