Class Image
Assembly: Mapsui.dll
Syntax
Properties
|
Edit this page
View Source
BitmapRegion
The BitmapRegion can be used to specific a
subregion that will be used as image symbol. This way the Image can be used as an 'atlas'
for 'sprites', which is a common mechanism in 2D gaming engines BitmapRegion can not be applied to SVGs.
Declaration
public BitmapRegion? BitmapRegion { get; set; }
Property Value
|
Edit this page
View Source
BlendModeColor
When BlendModeColor is set a BitmapType.Picture (e.g. used for SVG) will be
drawn in the BlendModeColor ignoring the colors of the Picture itself.
Declaration
public Color? BlendModeColor { get; set; }
Property Value
|
Edit this page
View Source
Source
Declaration
public required string Source { get; init; }
Property Value
|
Edit this page
View Source
SourceToSourceId
Declaration
public static ConcurrentDictionary<string, string> SourceToSourceId { get; }
Property Value
|
Edit this page
View Source
SvgFillColor
Option to override the fill color of the SVG image. This is useful if you want to change the color of the SVG
source image. Note that each different color used will add an new object to the image cache.
Declaration
public Color? SvgFillColor { get; set; }
Property Value
|
Edit this page
View Source
SvgStrokeColor
Option to override the stroke color of the SVG image. This is useful if you want to change the color of the SVG
source image. Note that each different color used will add an new object to the image cache.
Declaration
public Color? SvgStrokeColor { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetSourceIdForBitmapRegion()
Declaration
public string GetSourceIdForBitmapRegion()
Returns
|
Edit this page
View Source
GetSourceIdForSvgWithCustomColors()
Declaration
public string GetSourceIdForSvgWithCustomColors()
Returns
Operators
|
Edit this page
View Source
implicit operator Image(string)
This allows for the automatic conversion of a string to an Image object. This was added to make the creation
code simpler.
Declaration
public static implicit operator Image(string source)
Parameters
| Type |
Name |
Description |
| string |
source |
|
Returns
Extension Methods