Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Graphics Namespace / RenderContextBase Class / ComputePickMatrix Method
The rectangle to render
The size of the viewport
The real viewport bounds (for Direct3D)

In This Topic
    ComputePickMatrix Method (RenderContextBase)
    In This Topic
    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