public sealed class RgbCubeCache : LazyTextureCache<decimal>
Class for caching RGB colour space sections.

Constructors

RgbCubeCache

#
Create a new RGB section cache.
public RgbCubeCache(
lowQuality,
Low quality resolution.
highQuality,
High quality resolution.
padding
Pixel padding.
)

Properties

AutoCancelRendering

Gets or sets whether high quality texture rendering will be cancelled automatically if a new texture is requested.
public bool AutoCancelRendering { get; set; }
inherited fromLazyTextureCache<TKey>

CacheLimit

Gets or sets the cache size limit. If the number of cached textures exceeds this limit the cache will be emptied entirely. Note that changes to the cache limit won't be taken into consideration until the next texture is scheduled for caching.
public int CacheLimit { get; set; }
inherited fromLazyTextureCache<TKey>

Count

Gets the total number of cached textures. This includes textures of all quality levels.
public int Count { get; }
inherited fromLazyTextureCache<TKey>

Filter

Gets or sets the rounding table to use when making textures.
public NamedPalette Filter { get; set; }
inherited fromLazyTextureCache<TKey>

Padding

Gets the padding (in pixels) for all textures.
public int Padding { get; }
inherited fromLazyTextureCache<TKey>

PrettySize

Gets the resolution for high quality, fine textures.
public Size PrettySize { get; }
inherited fromLazyTextureCache<TKey>

QuickSize

Gets the resolution for low quality, coarse textures.
public Size QuickSize { get; }
inherited fromLazyTextureCache<TKey>

Indexers

this[]

Gets the texture associated with the given key. If the requested texture hasn't been created yet, it will be rendered in low resolution in the caller thread and a high resolution rendering will commence in a background thread.
public IMultiResolutionTexture this[
TKey
key,
Key to retrieve.
access = TextureCacheAccess.QuickNowPrettyLater
Cache access.
] { get; }
inherited fromLazyTextureCache<TKey>
Cached texture.

Methods

Clear

Clear all cached textures.
public void Clear()
inherited fromLazyTextureCache<TKey>

CreateTexture

#
Creates a texture with the specified properties.
protected override Bitmap CreateTexture(
Size
size,
padding,
key,
token
)

ProcessKey

#
Override this method if you wish to perform some operation to key values such as rounding or limiting. The base implementation returns the input key.
protected override decimal ProcessKey(
key
Key to process.
)
Processed key.