ZD Screen Recorder SDK API – ScnLib_SetVideoResolution()

ScnLib_SetVideoResolution()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_SetVideoResolution(int nWidth, int nHeight);
C# [DllImport("ScnLib.dll")] public static extern void ScnLib_SetVideoResolution(int Width, int Height);
Basic Public Declare Sub ScnLib_SetVideoResolution Lib "ScnLib.dll" (ByVal Width As Int32, ByVal Height As Int32)
Delphi procedure ScnLib_SetVideoResolution(Width: Integer; Height: Integer); stdcall; external 'ScnLib.dll';
  • Description
    Define the video resolution.

  • Parameters
    • Width [in]
      The width of the video resolution. Set to zero to adopt the same width as the initial screen capture area.
    • Height [in]
      The height of the video resolution. Set to zero to adopt the same height as the initial screen capture area.
  • Return Value
    None.

  • Remarks
    Use this function to define the video resolution, ensuring that both the width and height are multiples of two, as required by the H.264 video codec. If you set both width and height to zero, or by default, the SDK will automatically set the video resolution to match the size of the initial screen capture area. Should the size of the screen capture region not align with your specified video resolution, the captured screen images will be scaled while maintaining their original aspect ratio to fit the video resolution. Note that a higher video resolution results in clearer videos but also increases recording overhead. Modifying the video resolution during the recording process is not permitted. To check the current actual video resolution, call ScnLib_GetVideoResolution().

  • See Also
    ScnLib_PreviewVideo()
    ScnLib_GetVideoResolution()
    ScnLib_SetVideoFrameRate()

Shopping Cart
  • Your cart is empty.
Scroll to Top