Class PluginMapTile
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
Decoded immutable map tile returned by a host resource provider.
public sealed record PluginMapTile : IEquatable<PluginMapTile>
- Inheritance
-
PluginMapTile
- Implements
- Inherited Members
Constructors
PluginMapTile(PluginMapTileKey, int, int, ReadOnlyMemory<byte>, string)
Decoded immutable map tile returned by a host resource provider.
public PluginMapTile(PluginMapTileKey Key, int PixelWidth, int PixelHeight, ReadOnlyMemory<byte> Pixels, string PixelFormat = "RGBA8")
Parameters
KeyPluginMapTileKeyWhich tile this is.
PixelWidthintThe tile's width in pixels.
PixelHeightintThe tile's height in pixels.
PixelsReadOnlyMemory<byte>The decoded pixels, row by row from the top.
PixelFormatstringHow
Pixelsis laid out; "RGBA8" is four bytes a pixel.
Properties
Key
Which tile this is.
public PluginMapTileKey Key { get; init; }
Property Value
PixelFormat
How Pixels is laid out; "RGBA8" is four bytes a pixel.
public string PixelFormat { get; init; }
Property Value
PixelHeight
The tile's height in pixels.
public int PixelHeight { get; init; }
Property Value
PixelWidth
The tile's width in pixels.
public int PixelWidth { get; init; }
Property Value
Pixels
The decoded pixels, row by row from the top.
public ReadOnlyMemory<byte> Pixels { get; init; }