Class BitmapRegion
Defines which section of an image (the atlas) should be used from drawing a symbol (the sprite).
Implements
Inherited Members
Namespace: Mapsui.Styles
Assembly: Mapsui.dll
Syntax
public record BitmapRegion : IEquatable<BitmapRegion>
Constructors
| Edit this page View SourceBitmapRegion(int, int, int, int)
Defines which section of an image (the atlas) should be used from drawing a symbol (the sprite).
Declaration
public BitmapRegion(int X, int Y, int Width, int Height)
Parameters
| Type | Name | Description |
|---|---|---|
| int | X | The X-coordinate of the origin within the atlas. |
| int | Y | The Y-coordinate of the origin within the atlas. |
| int | Width | The width of the region. |
| int | Height | The height of the region. |
Properties
| Edit this page View SourceHeight
The height of the region.
Declaration
public int Height { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Width
The width of the region.
Declaration
public int Width { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
X
The X-coordinate of the origin within the atlas.
Declaration
public int X { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
Y
The Y-coordinate of the origin within the atlas.
Declaration
public int Y { get; init; }
Property Value
| Type | Description |
|---|---|
| int |