Table of Contents

Struct Point

Namespace
Egami
Assembly
Egami.dll

A position in pixels. X grows to the right and Y downward; the top-left pixel is (0, 0).

public readonly record struct Point : IEquatable<Point>
Implements
Inherited Members

Examples

// Source-over blending, clipped to the overlap; the logo may be any pixel type.
photo.Apply(ops => ops.DrawImage(logo, new Point(photo.Width - logo.Width - 10, 10), opacity: 0.9f), Ct);

Constructors

Point(int, int)

A position in pixels. X grows to the right and Y downward; the top-left pixel is (0, 0).

public Point(int X, int Y)

Parameters

X int

The column.

Y int

The row.

Examples

// Source-over blending, clipped to the overlap; the logo may be any pixel type.
photo.Apply(ops => ops.DrawImage(logo, new Point(photo.Width - logo.Width - 10, 10), opacity: 0.9f), Ct);

Properties

X

The column.

public int X { get; init; }

Property Value

int

Y

The row.

public int Y { get; init; }

Property Value

int