Constructors
Properties
AutoCancelRendering
Gets or sets whether high quality texture rendering will be cancelled automatically if a new texture is requested.
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.
Count
Gets the total number of cached textures. This includes textures of all quality levels.
Filter
Gets or sets the rounding table to use when making textures.
PrettySize
Gets the resolution for high quality, fine textures.
public Size PrettySize { get; }
QuickSize
Gets the resolution for low quality, coarse textures.
public Size QuickSize { get; }
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.
Returns: Cached texture.
Methods
Clear
Clear all cached textures.
public void Clear()
CreateTexture
#Create a texture with the specified properties.
protected override Bitmap CreateTexture()
Size
size,
Size of texture.
padding,
Padding.
rotation,
Rotation.
token
Cancellation token.
Returns: Texture
Overrides: LazyTextureCache<TKey>.CreateTexture
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. A common operation would be rounding or clipping.
protected virtual TKey ProcessKey()
TKey
key
Key to process.
Returns: Processed key.