Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / ViewportLayout Class / GetVisibleEntitiesFromBackBuffer Method
The viewport
The array of pixels drawn in false colors
The number of bytes per image row
Bytes per pixel
Selection rectangle in screen coordinates
If true, returns the first entity that is found in the selectionBox

In This Topic
    GetVisibleEntitiesFromBackBuffer Method
    In This Topic
    Returns the indices of the entities read from the back buffer in the selectionBox.
    Syntax
    'Declaration
     
    Protected Friend Overridable Function GetVisibleEntitiesFromBackBuffer( _
       ByVal viewport As Viewport, _
       ByVal rgbValues() As Byte, _
       ByVal stride As Integer, _
       ByVal bpp As Integer, _
       ByVal selectionBox As Rectangle, _
       ByVal firstOnly As Boolean _
    ) As Integer()
    protected internal virtual int[] GetVisibleEntitiesFromBackBuffer( 
       Viewport viewport,
       byte[] rgbValues,
       int stride,
       int bpp,
       Rectangle selectionBox,
       bool firstOnly
    )

    Parameters

    viewport
    The viewport
    rgbValues
    The array of pixels drawn in false colors
    stride
    The number of bytes per image row
    bpp
    Bytes per pixel
    selectionBox
    Selection rectangle in screen coordinates
    firstOnly
    If true, returns the first entity that is found in the selectionBox

    Return Value

    The array of the indices of the visible entities found in the selection box.
    See Also