ScnLib_ZoomInScreen()

ScnLib_ZoomInScreen()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_ZoomInScreen(double dRatio);
C# [DllImport("ScnLib.dll")] public static extern void ScnLib_ZoomInScreen(double Ratio);
Basic Public Declare Sub ScnLib_ZoomInScreen Lib "ScnLib.dll" (ByVal Ratio As Double)
Delphi procedure ScnLib_ZoomInScreen(Ratio: Double); stdcall; external 'ScnLib.dll';
  • Description
    Zoom in the screen capture region by a specified ratio.

  • Parameters
    • Ratio [in]
      The specified zoom-in ratio. A ratio above 1.0 results in the screen capture region being zoomed in, while a ratio of exactly 1.0 maintains the region at its original size, with no zoom applied. The ratio must not be less than 1.0.
  • Return Value
    None.

  • Remarks
    When creating a full-screen software demo or tutorial video, you might want to direct your audience's attention to a specific screen area or enhance visibility. In such cases, you can use this function to zoom in the screen capture region beyond a 1.0 ratio (e.g., 2.0 or 3.0). Later, you can reset the zoom to normal by calling the function again with a 1.0 ratio.

    A smooth, dynamic transition effect accompanies the zooming process, ensuring that the zoom doesn't appear abrupt in the video. To tune the zooming transition speed, refer to the function ScnLib_SetZoomSpeed().

    If the screen capture region is zoomed in and the mouse cursor approaches the edge of the viewport, the viewport automatically shifts to keep the cursor visible. To check the current zoom-in ratio, refer to the function ScnLib_GetZoomRatio().

  • See Also
    ScnLib_SetCaptureRegion()
    ScnLib_ShowCaptureRegionFrame()
    ScnLib_GetCaptureRegionFrameWnd()
    ScnLib_GetZoomRatio()
    ScnLib_SetZoomSpeed()

Try the SDK for FREE SDK APIs overview