Table of Contents

Class DeviceEffectExtensions

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.Core.dll
public static class DeviceEffectExtensions
Inheritance
DeviceEffectExtensions
Inherited Members

Methods

Initialize<TEffect>(TEffect, Action<TEffect>)

This extension method enables creating an effect and setting its properties without the need for a local variable.

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.