Table of Contents

Method GetEffectRequiredInputRectangle

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

GetEffectRequiredInputRectangle(IDeviceContext, IDeviceEffect, in RectFloat?, IReadOnlyList<EffectInputDescription>)

Returns the input rectangles that are required to be supplied by the caller to produce the given output rectangle.

public static IReadOnlyList<RectFloat> GetEffectRequiredInputRectangle(this IDeviceContext deviceContext, IDeviceEffect renderEffect, in RectFloat? renderImageRectangle, IReadOnlyList<EffectInputDescription> inputDescriptions)

Parameters

deviceContext IDeviceContext
renderEffect IDeviceEffect

The effect whose output is being rendered.

renderImageRectangle RectFloat?

The portion of the output image whose inputs are being inspected.

inputDescriptions IReadOnlyList<EffectInputDescription>

A list of the inputs whose rectangles are being queried.

Returns

IReadOnlyList<RectFloat>

The input rectangles.

Remarks

The caller should be very careful not to place a reliance on the required input rectangles returned. Small changes for correctness to an effect's behavior can result in different rectangles being returned. In addition, different kinds of optimization applied inside the render can also influence the result.

GetEffectRequiredInputRectangle(IDeviceContext, IDeviceEffect, in RectFloat?, in EffectInputDescription)

Returns the input rectangles that are required to be supplied by the caller to produce the given output rectangle.

public static RectFloat GetEffectRequiredInputRectangle(this IDeviceContext deviceContext, IDeviceEffect renderEffect, in RectFloat? renderImageRectangle, in EffectInputDescription inputDescription)

Parameters

deviceContext IDeviceContext
renderEffect IDeviceEffect

The effect whose output is being rendered.

renderImageRectangle RectFloat?

The portion of the output image whose inputs are being inspected.

inputDescription EffectInputDescription

Returns

RectFloat

The input rectangles.

Remarks

The caller should be very careful not to place a reliance on the required input rectangles returned. Small changes for correctness to an effect's behavior can result in different rectangles being returned. In addition, different kinds of optimization applied inside the render can also influence the result.

GetEffectRequiredInputRectangle(IDeviceContext, IDeviceEffect, in RectFloat?, IDeviceEffect, int, RectFloat)

public static RectFloat GetEffectRequiredInputRectangle(this IDeviceContext deviceContext, IDeviceEffect renderEffect, in RectFloat? renderImageRectangle, IDeviceEffect inputEffect, int inputEffectInputIndex, RectFloat inputRectangle)

Parameters

deviceContext IDeviceContext
renderEffect IDeviceEffect
renderImageRectangle RectFloat?
inputEffect IDeviceEffect
inputEffectInputIndex int
inputRectangle RectFloat

Returns

RectFloat