Table of Contents

Interface Transform

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll

Represents the base interface for all of the transforms implemented by the transform author.

[Guid("ef1a287d-342a-4f76-8fdb-da0d6ea9f92b")]
public interface Transform : TransformNode, IUnknown, ICallbackable, IDisposable
Inherited Members

Methods

MapInputRectanglesToOutputRectangle(RawRectangle[], RawRectangle[], out RawRectangle)

[This documentation is preliminary and is subject to change.]

Applies to: desktop apps | Metro style apps

Performs the inverse mapping to MapOutputRectToInputRects.

RawRectangle MapInputRectanglesToOutputRectangle(RawRectangle[] inputRects, RawRectangle[] inputOpaqueSubRects, out RawRectangle outputOpaqueSubRect)

Parameters

inputRects RawRectangle[]

No documentation.

inputOpaqueSubRects RawRectangle[]

No documentation.

outputOpaqueSubRect RawRectangle

No documentation.

Returns

RawRectangle

No outputOpaqueSubRect.

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.

MapInvalidRect(int, RawRectangle)

No documentation.

RawRectangle MapInvalidRect(int inputIndex, RawRectangle invalidInputRect)

Parameters

inputIndex int

No documentation.

invalidInputRect RawRectangle

No documentation.

Returns

RawRectangle

The rectangle invalidated.

MapOutputRectangleToInputRectangles(RawRectangle, RawRectangle[])

[This documentation is preliminary and is subject to change.]

Applies to: desktop apps | Metro style apps

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 MapOutputRectangleToInputRectangles(RawRectangle outputRect, RawRectangle[] inputRects)

Parameters

outputRect RawRectangle

The output rectangle to which the inputs must be mapped.

inputRects RawRectangle[]

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 DirectImage renderer implementation reserves the right to call this method at any time and in any sequence.