Table of Contents

Class ScenePositionEffect

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

An effect whose output at each location is the scene position. This can be useful for sample map effects that take a sample map as input, and produce a sample map as an output. If this effect is plugged into the SampleMapRenderer as the SampleMap input, the output will be the same as the Input image.

The scene position enumerates center-of-pixel offsets, such as { x = 0.5, y = 0.5 }, instead of whole-integer offsets, such as { x = 0, y = 0 }. If you prefer to have whole-integer offsets, pass the output of this effect to an HlslUnaryFunctionEffect with the Function property set to Floor.

public sealed class ScenePositionEffect : CustomEffect<ScenePositionEffect.Props>, ISerializable, IDeviceEffect, IDeviceImage, IDirect2DResource, IFactoryProperty, IDeviceEffectProperties, IObjectRef, IIsDisposed, IDisposable, IInternalImpl
Inheritance
ScenePositionEffect
Implements
Inherited Members

Constructors

ScenePositionEffect(IDeviceEffectFactory)
ScenePositionEffect(IDeviceEffectFactory, ScenePositionFormat)