Class RectDesktopRegion
Represents a rectangular region on a specific display.
Inherited Members
Namespace: Zaya.Screenshot.Models
Assembly: Zaya.Screenshot.dll
Syntax
public sealed record RectDesktopRegion : ICaptureRegion, IEquatable<RectDesktopRegion>
Properties
| Edit this page View SourceDisplayIndex
Index of the target display (0 = primary display).
Declaration
public required int DisplayIndex { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
PixelFormat
Gets the desired pixel format for the captured frame. Default is Bgra32.
Declaration
public PixelFormat PixelFormat { get; init; }
Property Value
| Type | Description |
|---|---|
| PixelFormat |
Rectangle
The rectangular area to capture, in coordinates relative to the top-left of the selected display (not the virtual desktop / multi-monitor screen space).
Declaration
public required Rectangle Rectangle { get; init; }
Property Value
| Type | Description |
|---|---|
| Rectangle |