Show / Hide Table of Contents

Class RectDesktopRegion

Represents a rectangular region on a specific display.

Inheritance
object
RectDesktopRegion
Implements
ICaptureRegion
IEquatable<RectDesktopRegion>
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 RectDesktopRegion : ICaptureRegion, IEquatable<RectDesktopRegion>

Properties

| Edit this page View Source

DisplayIndex

Index of the target display (0 = primary display).

Declaration
public required int DisplayIndex { get; init; }
Property Value
Type Description
int
| 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 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

Implements

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