ScreenCaptureSourceInfo

Information about shareable windows or screens.

public class ScreenCaptureSourceInfo
    {
        public ScreenCaptureSourceType type;
        public long sourceId;
        public string sourceName;
        public ThumbImageBuffer thumbImage;
        public ThumbImageBuffer iconImage;
        public string processPath;
        public string sourceTitle;
        public bool primaryMonitor;
        public Rectangle position;
        public long sourceDisplayId;
    };

Properties

type
Type of the sharing target. See ScreenCaptureSourceType.
sourceId
For a window, this is the Window ID; for a screen, this is the Display ID.
sourceName
Name of the window or screen. UTF-8 encoded.
thumbImage
Image content of the thumbnail. See ThumbImageBuffer.
iconImage
Image content of the icon. See ThumbImageBuffer.
processPath
Process to which the window belongs. UTF-8 encoded.
sourceTitle
Window title. UTF-8 encoded.
primaryMonitor
Whether the screen is the primary display:
  • true: The screen is the primary display.
  • false: The screen is not the primary display.
position
Position of the window relative to the entire screen space (including all shareable screens). See Rectangle.
sourceDisplayId
(Windows only) ID of the screen where the window is located. If the window spans multiple screens, this is the ID of the screen with the largest intersection area. If the window is outside the visible screen area, the value is -2.