Show / Hide Table of Contents

Class RectWindowRegion

Represents a rectangular region within a specific window.

Inheritance
object
RectWindowRegion
Implements
ICaptureRegion
IEquatable<RectWindowRegion>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Zaya.Screenshot.Models
Assembly: Zaya.Screenshot.dll
Syntax
public sealed record RectWindowRegion : ICaptureRegion, IEquatable<RectWindowRegion>

Properties

| Edit this page View Source

PixelFormat

Gets the desired pixel format for the captured frame. Default is Bgra32.

Declaration
public PixelFormat PixelFormat { get; init; }
Property Value
Type Description
PixelFormat
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

WindowHandle

Handle to the target window.

Declaration
public required nint WindowHandle { get; init; }
Property Value
Type Description
nint

Implements

ICaptureRegion
IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX