ScnLib_GetCaptureRegion()

ScnLib_GetCaptureRegion()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_GetCaptureRegion(long *left, long *top, long *right, long *bottom);
C# [DllImport("ScnLib.dll")] public static extern void ScnLib_GetCaptureRegion(ref int left, ref int top, ref int right, ref int bottom);
Basic Public Declare Sub ScnLib_GetCaptureRegion Lib "ScnLib.dll" (ByRef left As Int32, ByRef top As Int32, ByRef right As Int32, ByRef bottom As Int32)
Delphi procedure ScnLib_GetCaptureRegion(var left: Integer; var top: Integer; var right: Integer; var bottom: Integer); stdcall; external 'ScnLib.dll';
  • Description
    Obtain the coordinates of the current screen recording region.

  • Parameters
    • left [out]
      The x-coordinate, in pixels, representing the upper-left corner of the screen capture region.
    • top [out]
      The y-coordinate, in pixels, representing the upper-left corner of the screen capture region.
    • right [out]
      The x-coordinate, in pixels, representing the lower-right corner of the screen capture region.
    • bottom [out]
      The y-coordinate, in pixels, representing the lower-right corner of the screen capture region.
    • The designated screen capture area excludes the right and bottom edges of the rectangle.
  • Return Value
    None.

  • Remarks
    Use this function to obtain the coordinates of the current screen recording region.

  • See Also
    ScnLib_SetCaptureRegion()
    ScnLib_GetCaptureWnd()
    ScnLib_SelectCaptureRegionA/W()
    ScnLib_ShowCaptureRegionFrame()
    ScnLib_GetCaptureRegionFrameWnd()

Try the SDK for FREE SDK APIs overview