Table of Contents

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

Id string

The id of the image among the plugin's resources.

PixelWidth int

The image's width in pixels.

PixelHeight int

The image's height in pixels.

Coordinates IPluginMapCoordinateConverter

How 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

IPluginMapCoordinateConverter

Id

The id of the image among the plugin's resources.

public string Id { get; init; }

Property Value

string

PixelHeight

The image's height in pixels.

public int PixelHeight { get; init; }

Property Value

int

PixelWidth

The image's width in pixels.

public int PixelWidth { get; init; }

Property Value

int