Addon.Webcam.SetVideoRotateMode()

Description

Sets video rotate mode of the current webcam.

Syntax

.Addon.Webcam.SetVideoRotateMode(int iVideoRotateMode);

Parameters

<int> iVideoRotateMode: Specifies the video rotate mode on a video capture device, allowed values are:

Allowed Values EnumDWT_VideoRotateMode enumeration Description
0 VRM_NONE Don't rotate
1 VRM_90_DEGREES_CLOCKWISE 90 deg Clockwise
2 VRM_180_DEGREES_CLOCKWISE 180 deg Clockwise
3 VRM_270_DEGREES_CLOCKWISE 270 deg Clockwise
4 VRM_FLIP_VERTICAL Flip
5 VRM_FLIP_HORIZONTAL Mirror

Return value

bool

true indicates success. false indicates failure.

Remarks

The method should be called after Addon.Webcam.SelectSource. If there is only one data source available, it will be selected automatically.

Example

if (DWObject)
  {
   DWObject.Addon.Webcam.SetVideoRotateMode(VRM_90_DEGREES_CLOCKWISE);
  }