Class PluginMapImage
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
Describes a map image and its canonical coordinate bounds.
public sealed record PluginMapImage : IEquatable<PluginMapImage>
- Inheritance
-
PluginMapImage
- Implements
- Inherited Members
Constructors
PluginMapImage(string, int, int, IPluginMapCoordinateConverter)
Describes a map image and its canonical coordinate bounds.
public PluginMapImage(string Id, int PixelWidth, int PixelHeight, IPluginMapCoordinateConverter Coordinates)
Parameters
IdstringThe id of the image among the plugin's resources.
PixelWidthintThe image's width in pixels.
PixelHeightintThe image's height in pixels.
CoordinatesIPluginMapCoordinateConverterHow positions on the image relate to positions in the world.
Properties
Coordinates
How positions on the image relate to positions in the world.
public IPluginMapCoordinateConverter Coordinates { get; init; }
Property Value
Id
The id of the image among the plugin's resources.
public string Id { get; init; }
Property Value
PixelHeight
The image's height in pixels.
public int PixelHeight { get; init; }
Property Value
PixelWidth
The image's width in pixels.
public int PixelWidth { get; init; }