Raster class
Namespace: Arlecchino.Pictures · Assembly: Arlecchino.Pictures
What a picture turned out to hold, ready to be handed to a widget that draws pixels.
public sealed class Raster : IEquatable<Raster>
Implements IEquatable<T><Raster>
Constructors
| Member | Summary |
|---|---|
Raster(Rgb[], int, int) | What a picture turned out to hold, ready to be handed to a widget that draws pixels. |
Properties
| Member | Summary |
|---|---|
Height | How tall it is. |
Pixels | The pixels, row by row from the top left. |
Width | How wide it is. |
Methods
| Member | Summary |
|---|---|
Deconstruct(out Rgb[], out int, out int) |
Constructors in detail
Raster(Rgb[], int, int)
public Raster(Rgb[] Pixels, int Width, int Height);
What a picture turned out to hold, ready to be handed to a widget that draws pixels.
Parameters
| Name | Type | Description |
|---|---|---|
Pixels | Rgb[] | The pixels, row by row from the top left. |
Width | int | How wide it is. |
Height | int | How tall it is. |
Properties in detail
Height
public int Height { get; init; }
How tall it is.
Type int
Pixels
public Rgb[] Pixels { get; init; }
The pixels, row by row from the top left.
Type Rgb[]
Width
public int Width { get; init; }
How wide it is.
Type int
Methods in detail
Deconstruct(out Rgb[], out int, out int)
public void Deconstruct(out Rgb[] Pixels, out int Width, out int Height);
Parameters
| Name | Type | Description |
|---|---|---|
Pixels | Rgb[] | |
Width | int | |
Height | int |