Class ColorCache
Provides a cached collection of Color instances corresponding to all KnownColor values.
public static class ColorCache
- Inheritance
-
ColorCache
Remarks
This class improves performance by precomputing and caching all Color instances derived from KnownColor values. Use the Get(KnownColor) method to retrieve a cached Color instance.
Methods
- Get(KnownColor)
Retrieves the Color associated with the specified KnownColor. This method uses a cached collection of colors for improved performance.