Table of Contents

Method InvalidateInputRectangle

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.Core.dll

InvalidateInputRectangle(IDeviceEffect, IDeviceContext, int, RectFloat)

This indicates that a portion of an effect's input is invalid. This method can be called many times.

You can use this method to propagate invalid rectangles through an effect graph. You can query Direct2D using the GetEffectInvalidRectangles(IDeviceEffect) method.

NOTE: Direct2D does not automatically use these invalid rectangles to reduce the region of an effect that is rendered.
You can also use this method to invalidate caches that have accumulated while rendering effects that have the Cached property set to true.

public static void InvalidateInputRectangle(this IDeviceEffect effect, IDeviceContext deviceContext, int input, RectFloat inputRect)

Parameters

effect IDeviceEffect
deviceContext IDeviceContext
input int
inputRect RectFloat