Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetRasterStatus

Returns information describing the raster of the monitor on which the swap chain is presented.

object.GetRasterStatus() As D3DRASTER_STATUS

Parts

object
Object expression that resolves to a Direct3DDevice8 object.

Return Values

A D3DRASTER_STATUS type filled with information about the position or other status of the raster on the monitor driven by this adapter.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL if pRasterStatus is invalid or if the device does not support reading the current scan line. You can determine whether or not the device supports reading the scan line by checking for the D3DCAPS_READ_SCANLINE flag in the Caps member of D3DCAPS8.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

D3DRASTER_STATUS