HdrToneMapEffectCacheOutput Property |
Namespace: Microsoft.Graphics.Canvas.Effects
public bool CacheOutput { get; set; }
This API is only available when running on Windows 10 build 17763 (October 2018) or greater.
If set, and as long as sufficient cache memory is available, the results of drawing this effect will be stored in a cache that is automatically reused to speed future drawing operations.
Caching can be useful when an expensive effect (for example a large blur) is input to a cheap effect (such as a 2D transform). If the blur settings remain constant while the transform is animated, setting CacheOutput on the blur avoids having to reevaluate the filter every time the transform changes.
If an image used as source to a cached effect has changed, InvalidateSourceRectangle(ICanvasResourceCreatorWithDpi, UInt32, Rect) can be used to invalidate the cache.