Show / Hide Table of Contents

Class ImageManager

Implements image management for any control using textures/images (Image, ImageBrush)

Inheritance
System.Object
ImageManager
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: EmptyKeys.UserInterface
Assembly: EmptyKeys.UserInterface.dll
Syntax
public sealed class ImageManager

Properties

Instance

Gets the instance.

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

The instance.

Methods

AddImage(String)

Adds the image.

Declaration
public void AddImage(string imageAsset)
Parameters
Type Name Description
System.String imageAsset

The image asset.

ClearCache()

Clears the cache.

Declaration
public void ClearCache()

GetImage(String)

Gets the image.

Declaration
public TextureBase GetImage(string assetName)
Parameters
Type Name Description
System.String assetName

Name of the asset.

Returns
Type Description
EmptyKeys.UserInterface.Media.TextureBase

LoadImages(Object, String)

Loads the images.

Declaration
public void LoadImages(object contentManager, string basePath = "")
Parameters
Type Name Description
System.Object contentManager

The content manager.

System.String basePath

The base path.

Back to top Generated by DocFX