Click or drag to resize
ChromaKeyEffectCacheOutput Property
Enables caching the output from drawing this effect.

Namespace:  Microsoft.Graphics.Canvas.Effects
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version:
public bool CacheOutput { get; set; }

Property Value

Type: Boolean



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.

See Also