Click or drag to resize
TintEffectInvalidateSourceRectangle Method
[Win10_14393] Notifies the effect that one of its source images has changed.

Namespace:  Microsoft.Graphics.Canvas.Effects
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void InvalidateSourceRectangle(
	ICanvasResourceCreatorWithDpi resourceCreator,
	uint sourceIndex,
	Rect invalidRectangle
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreatorWithDpi
sourceIndex
Type: SystemUInt32
invalidRectangle
Type: Windows.FoundationRect

Implements

ICanvasEffectInvalidateSourceRectangle(ICanvasResourceCreatorWithDpi, UInt32, Rect)
Remarks

This API is only available when running on Windows 10 build 14393 (Anniversary Update) or greater.

When CacheOutput is enabled, this method can be used to invalidate the cache.

It is also used to populate a list of invalid regions which are propagated through the effect graph, mapped from source to output coordinate systems, and can then be queried by GetInvalidRectangles(ICanvasResourceCreatorWithDpi).

See Also