Downshift Method

NI Vision for Visual Basic

Downshift Method

Syntax

CWIMAQDisplayMapping.Downshift NumberOfShifts

Purpose

Applies a given number of right shifts to the 16-bit pixels.

Remarks

After the execution of this method, the following hold true:

  • The policy is set to cwimaqDownShift.
  • NumberOfShifts is the number of right shifts to apply.
  • Range is undefined.

Parameters

NumberOfShifts As Long

The number of right shifts to apply to the 16-bit pixels.

Example

' Right shift the pixels of the 16-bit image in Viewer1
' by 2 bits before displaying.
CWIMAQViewer1.DisplayMapping.Downshift 2

See Also

Policy

NumberOfShifts