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
deviceContextIDeviceContextrenderEffectIDeviceEffectThe effect whose output is being rendered.
renderImageRectangleRectFloat?The portion of the output image whose inputs are being inspected.
inputDescriptionsIReadOnlyList<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
deviceContextIDeviceContextrenderEffectIDeviceEffectThe effect whose output is being rendered.
renderImageRectangleRectFloat?The portion of the output image whose inputs are being inspected.
inputDescriptionEffectInputDescription
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
deviceContextIDeviceContextrenderEffectIDeviceEffectrenderImageRectangleRectFloat?inputEffectIDeviceEffectinputEffectInputIndexintinputRectangleRectFloat