Show / Hide Table of Contents

    Class BitmapRegistry

    Class for managing all bitmaps, which are registered for Mapsui drawing

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

    Properties

    | Improve this Doc View Source

    Instance

    Singleton of BitmapRegistry class

    Declaration
    public static BitmapRegistry Instance { get; }
    Property Value
    Type Description
    BitmapRegistry

    Methods

    | Improve this Doc View Source

    Get(Int32)

    Get bitmap data of registered bitmap

    Declaration
    public object Get(int id)
    Parameters
    Type Name Description
    System.Int32 id

    Id of existing bitmap data

    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    Register(Object)

    Register a new bitmap

    Declaration
    public int Register(object bitmapData)
    Parameters
    Type Name Description
    System.Object bitmapData

    Bitmap data to register

    Returns
    Type Description
    System.Int32

    Id of registered bitmap data

    | Improve this Doc View Source

    Set(Int32, Object)

    Set new bitmap data for a already registered bitmap

    Declaration
    public bool Set(int id, object bitmapData)
    Parameters
    Type Name Description
    System.Int32 id

    Id of existing bitmap data

    System.Object bitmapData

    New bitmap data to replace

    Returns
    Type Description
    System.Boolean

    True, if replacing worked correct

    | Improve this Doc View Source

    Unregister(Int32)

    Unregister a existing bitmap

    Declaration
    public void Unregister(int id)
    Parameters
    Type Name Description
    System.Int32 id

    Id of registered bitmap data

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX