Skip to content

SixelBounds

Namespace: Hex1b.Sixel

Assembly: Hex1b.dll

A pixel-space rectangle.

csharp
public readonly record struct SixelBounds : IEquatable<SixelBounds>

Implements

Constructors

SixelBounds(int, int, int, int)

A pixel-space rectangle.

Parameters:

  • X (Int32): The left offset, in pixels.
  • Y (Int32): The top offset, in pixels.
  • Width (Int32): The width, in pixels.
  • Height (Int32): The height, in pixels.
csharp
public SixelBounds(int X, int Y, int Width, int Height)

Properties

Empty

An empty (zero-size) bounds.

Returns: SixelBounds

csharp
public static SixelBounds Empty { get; }

Height

The height, in pixels.

Returns: Int32

csharp
public int Height { get; init; }

IsEmpty

Gets whether this bounds has zero width or height.

Returns: Boolean

csharp
public bool IsEmpty { get; }

Width

The width, in pixels.

Returns: Int32

csharp
public int Width { get; init; }

X

The left offset, in pixels.

Returns: Int32

csharp
public int X { get; init; }

Y

The top offset, in pixels.

Returns: Int32

csharp
public int Y { get; init; }

Released under the MIT License.