Method MapOutputRectToInputRects
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
MapOutputRectToInputRects(RectInt32, Span<RectInt32>)
Allows a transform to state how it would map a rectangle requested on its output to a set of sample rectangles on its input.
void MapOutputRectToInputRects(RectInt32 outputRect, Span<RectInt32> inputRects)
Parameters
outputRect
RectInt32The output rectangle from which the inputs must be mapped.
inputRects
Span<RectInt32>The corresponding set of inputs. The inputs will directly correspond to the transform inputs.
Remarks
The transform implementation must ensure that any pixel shader or software callback implementation it
provides honors this calculation.
The transform implementation must regard this method as purely functional. It can base the mapped input
and output rectangles on its current state as specified by the encapsulating effect properties. However,
it must not change its own state in response to this method being invoked. The Direct2D renderer
implementation reserves the right to call this method at any time and in any sequence.