Struct Size
- Namespace
- Egami
- Assembly
- Egami.dll
A width and height in pixels.
public readonly record struct Size : IEquatable<Size>
- Implements
- Inherited Members
Examples
// At least 100 × 75 from the stored JPEG, decoded at 1/2, 1/4 or 1/8 scale straight from the DCT.
using Raster preview = Raster.Load("duck.jpg", options: new ReaderOptions { MinimumSize = new Size(100, 75) });
Constructors
Size(int, int)
A width and height in pixels.
public Size(int Width, int Height)
Parameters
Examples
// At least 100 × 75 from the stored JPEG, decoded at 1/2, 1/4 or 1/8 scale straight from the DCT.
using Raster preview = Raster.Load("duck.jpg", options: new ReaderOptions { MinimumSize = new Size(100, 75) });
Properties
Height
The height.
public int Height { get; init; }
Property Value
Width
The width.
public int Width { get; init; }