ScnLib_GetWebcamViewMode()

ScnLib_GetWebcamViewMode()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) int __stdcall ScnLib_GetWebcamViewMode(void);
C# [DllImport("ScnLib.dll")] public static extern int ScnLib_GetWebcamViewMode();
Basic Public Declare Function ScnLib_GetWebcamViewMode Lib "ScnLib.dll" () As Int32
Delphi function ScnLib_GetWebcamViewMode(): Integer; stdcall; external 'ScnLib.dll';
  • Description
    Check the current webcam view mode.

  • Parameters
    None.

  • Return Value
    The current webcam view mode, which can be one of the following:
    • SCNLIB_WEBCAM_VIEW_PADDING
      Displays the entire webcam view, but may add black bars on the top and bottom or the left and right sides if the aspect ratios differ.
    • SCNLIB_WEBCAM_VIEW_CROPPING
      Shows the largest possible area of the webcam view within the view size.
    • SCNLIB_WEBCAM_VIEW_STRETCHING
      Fits the entire webcam image into the view size, but may stretch the image.
  • Remarks
    Use this function to check the current webcam view mode.

  • See Also
    ScnLib_SetWebcamViewMode()

Try the SDK for FREE SDK APIs overview