ZD Screen Recorder SDK API – ScnLib_LockCaptureRegionFrameAspectRatio()

ScnLib_LockCaptureRegionFrameAspectRatio()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_LockCaptureRegionFrameAspectRatio(BOOL bEnable);
C# [DllImport("ScnLib.dll")] public static extern void ScnLib_LockCaptureRegionFrameAspectRatio(bool Enable);
Basic Public Declare Sub ScnLib_LockCaptureRegionFrameAspectRatio Lib "ScnLib.dll" (ByVal Enable As Boolean)
Delphi procedure ScnLib_LockCaptureRegionFrameAspectRatio(Enable: LongBool); stdcall; external 'ScnLib.dll';
  • Description
    Lock/Unlock the aspect ratio of the capture region frame.

  • Parameters
    • Enable [in]
      TRUE: To lock the aspect ratio.
      FALSE: To unlock the aspect ratio.
  • Return Value
    None.

  • Remarks
    Use this function to lock/unlock the aspect ratio of the capture region frame. When you want to record videos in a specific aspect ratio (such as 4:3 or 16:9), if the aspect ratio of the screen capture region is different, to avoid stretching and distorting the video image, black bars may be added to the top and bottom or to the left and right sides of the recorded video. If you do not wish to have black bars appear in your video, you should set the screen capture region to the same aspect ratio as your video and lock the aspect ratio of the capture region frame to ensure it remains unchanged while adjusting the screen capture region frame. By default, the aspect ratio of the capture region frame is not locked. To check its current lock status, call ScnLib_IsCaptureRegionFrameAspectRatioLocked().

  • See Also
    ScnLib_ShowCaptureRegionFrame()
    ScnLib_IsCaptureRegionFrameAspectRatioLocked()

Shopping Cart
  • Your cart is empty.
Scroll to Top