Environment.GetVisibleEntitiesFromBackBuffer Method
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()
This language is not supported or no code example is available.
Parameters
- viewport
- Viewport
The viewport
- rgbValues
- byte[]
The array of pixels drawn in false colors
- stride
- int
The number of bytes per image row
- bpp
- int
Bytes per pixel
- selectionBox
- Rectangle
Selection rectangle in screen coordinates
- firstOnly
- bool
If true, returns the first entity that is found in the selectionBox
Return Value
int[]The array of the indices of the visible entities found in the selection box.