PeachDrawing.Core

PeachDrawing.Core

IntRect Struct

An integer pixel rectangle; the right and bottom edges are exclusive.

public readonly record struct IntRect : System.IEquatable<PeachDrawing.Core.IntRect>

Implements System.IEquatable<IntRect>

Constructors  
IntRect(int, int, int, int) An integer pixel rectangle; the right and bottom edges are exclusive.
Properties  
Empty The rectangle covering no pixels.
Height The rectangle’s height, in pixels.
IsEmpty Whether the rectangle covers no pixels.
Width The rectangle’s width, in pixels.
Methods  
Intersect(IntRect) The rectangle both this one and other cover (empty when they do not overlap).