Click or drag to resize
ICanvasEffect Interface
Defines common functionality that is shared by all Win2D effects.

Namespace:  Microsoft.Graphics.Canvas.Effects
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public interface ICanvasEffect : IGraphicsEffect, 
	IGraphicsEffectSource, ICanvasImage, IDisposable

The ICanvasEffect type exposes the following members.

Properties
  NameDescription
Public propertyBufferPrecision
Specifies what precision to use for intermediate buffers when drawing this effect.
Public propertyCacheOutput
Enables caching the output from drawing this effect.
Top
Methods
  NameDescription
Public methodGetInvalidRectangles
Queries what regions of the effect output have changed since it was last drawn.
Public methodCode exampleGetRequiredSourceRectangle
Queries what part of an effect source image is needed to draw an output region.
Public methodGetRequiredSourceRectangles
Queries what parts of the effect source images are needed to draw an output region.
Public methodInvalidateSourceRectangle
Notifies the effect that one of its source images has changed.
Top
Remarks
Unlike IGraphicsEffect, which is shared between Win2D and Windows.UI.Composition, the functionality defined by ICanvasEffect is only relevant when an effect is used with Win2D.
See Also