ScnLib_GetWebcamPosition()

ScnLib_GetWebcamPosition()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_GetWebcamPosition(int *nPosition, int *nMarginX, int *nMarginY);
C# [DllImport("ScnLib.dll")] public static extern void ScnLib_GetWebcamPosition(ref int Position, ref int MarginX, ref int MarginY);
Basic Public Declare Sub ScnLib_GetWebcamPosition Lib "ScnLib.dll" (ByRef Position As Int32, ByRef MarginX As Int32, ByRef MarginY As Int32)
Delphi procedure ScnLib_GetWebcamPosition(var Position: Integer; var MarginX: Integer; var MarginY: Integer); stdcall; external 'ScnLib.dll';
  • Description
    Check the current position of the webcam view.

  • Parameters
    • Position [out]
      • SCNLIB_POSITION_TOP_LEFT : Positioned at the top-left corner of the video.
      • SCNLIB_POSITION_TOP : Positioned at the top side of the video.
      • SCNLIB_POSITION_TOP_RIGHT : Positioned at the top-right corner of the video.
      • SCNLIB_POSITION_RIGHT : Positioned at the right side of the video.
      • SCNLIB_POSITION_BOTTOM_RIGHT : Positioned at the bottom-right corner of the video.
      • SCNLIB_POSITION_BOTTOM : Positioned at the bottom side of the video.
      • SCNLIB_POSITION_BOTTOM_LEFT : Positioned at the bottom-left corner of the video.
      • SCNLIB_POSITION_LEFT : Positioned at the left side of the video.
      • SCNLIB_POSITION_CENTER : Positioned at the center of the video.
    • MarginX [out]
      The horizontal margin, representing the offset from the edge of the video.
    • MarginY [out]
      The vertical margin, representing the offset from the edge of the video.
  • Return Value
    None.

  • Remarks
    Use this function to check the current position of the webcam view.

  • See Also
    ScnLib_SetWebcamPosition()

Try the SDK for FREE SDK APIs overview