Click or drag to resize
StraightenEffectGetInvalidRectangles Method
Queries what regions of the effect output have changed since it was last drawn.

Namespace:  Microsoft.Graphics.Canvas.Effects
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public Rect[] GetInvalidRectangles(
	ICanvasResourceCreatorWithDpi resourceCreator
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreatorWithDpi

Return Value

Type: Rect

Implements

ICanvasEffectGetInvalidRectangles(ICanvasResourceCreatorWithDpi)
Remarks

This method is used to map rectangles from the source to output coordinate systems of an effect graph. First, InvalidateSourceRectangle(ICanvasResourceCreatorWithDpi, UInt32, Rect) is called one or more times to populate a list of what source regions have changed. Then, GetInvalidRectangles is called to map these regions into the coordinate system of the effect output.

The list of invalid regions is cleared whenever the effect is successfully drawn (i.e. a CanvasDrawingSession that it has been drawn to is closed).

See Also