Table of Contents

Enum ScenePositionFormat

Namespace
PaintDotNet.Direct2D1.Effects
Assembly
PaintDotNet.Windows.Framework.dll

Specifies the output format of the ScenePositionEffect.

public enum ScenePositionFormat

Fields

XY01 = 0

The scene position will be provided as { X, Y, 0, 1 }. This can be used as the input value for a sample map effect or the SampleMapRenderer, in which case it is essentially the identity transform.

Raw = 1

The scene position will be the exact value returned from ComputeSharp.D2D1.D2D.GetScenePosition().
See also D2DGetScenePosition function.
The Z and W components contain values used for calculating texture offsets and can be useful in very advanced scenarios for low-level pixel shaders.
These values may not be interpreted correctly if used in sample map effects, which expect values in the form {X, Y, *, A}.

XY00 = 2

The scene position will be provided as { X, Y, 0, 0 }.