Search Results for

    Show / Hide Table of Contents

    Class Image

    Inheritance
    object
    Image
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Styles
    Assembly: Mapsui.dll
    Syntax
    public class Image

    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
    Type Description
    BitmapRegion
    | 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
    Type Description
    Color?
    | Edit this page View Source

    Source

    Declaration
    public required string Source { get; init; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    SourceToSourceId

    Declaration
    public static ConcurrentDictionary<string, string> SourceToSourceId { get; }
    Property Value
    Type Description
    ConcurrentDictionary<string, string>
    | 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
    Type Description
    Color?
    | 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
    Type Description
    Color?

    Methods

    | Edit this page View Source

    GetSourceIdForBitmapRegion()

    Declaration
    public string GetSourceIdForBitmapRegion()
    Returns
    Type Description
    string
    | Edit this page View Source

    GetSourceIdForSvgWithCustomColors()

    Declaration
    public string GetSourceIdForSvgWithCustomColors()
    Returns
    Type Description
    string

    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
    Type Description
    Image

    Extension Methods

    DisposableExtension.DisposeIfDisposable(object?)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX