Class RectWindowRegion
Represents a rectangular region within a specific window.
Inherited Members
Namespace: Zaya.Screenshot.Models
Assembly: Zaya.Screenshot.dll
Syntax
public sealed record RectWindowRegion : ICaptureRegion, IEquatable<RectWindowRegion>
Properties
| Edit this page View SourcePixelFormat
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 within the window to capture. Origin depends on UseClientCoordinates.
Declaration
public required Rectangle Rectangle { get; init; }
Property Value
| Type | Description |
|---|---|
| Rectangle |
UseClientCoordinates
When true, Rectangle is relative to the window client area.
When false, it is relative to the full window frame (including non-client chrome)
as returned by Windows Graphics Capture.
Default is false.
Declaration
public bool UseClientCoordinates { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
WindowHandle
Handle to the target window.
Declaration
public required nint WindowHandle { get; init; }
Property Value
| Type | Description |
|---|---|
| nint |