Table of Contents

Class PerspectiveTransform3DEffect.Props

Namespace
PaintDotNet.Direct2D1.Effects
Assembly
PaintDotNet.Windows.Core.dll
public sealed class PerspectiveTransform3DEffect.Props : DeviceEffectProperties
Inheritance
PerspectiveTransform3DEffect.Props
Inherited Members

Constructors

Props()

Properties

BorderMode

The mode used to calculate the border of the image, soft or hard.
When set to BorderMode.Soft, the effect pads the image with transparent black pixels as it interpolates, resulting in a soft edge.
When set to BorderMode.Hard, the effect clamps the output to the size of the input image. The default value is BorderMode.Soft.

ClassID

Implemented by the derived class to specify the effect's class ID (CLSID) when registering and creating the effect and for binding to an IDeviceEffectProperties.
Note that this is different than the ID property accessor, which queries the IDeviceEffectProperties for the actual runtime effect class ID.
Overriding this property is only necessary in advanced scenarios, such as when wrapping an existing effect (e.g. built-in Direct2D effects), or when working with CustomEffects that have their own generic type arguments (e.g. PixelShaderEffect).

Depth

The distance from the PerspectiveOrigin to the projection plane. The value is specified in DIPs and must be greater than 0.
The default value is 1000.

GlobalOffset

A translation the effect performs after it rotates the projection plane. The value is specified in DIPs.
The default value is { 0, 0, 0 }.

Input
InterpolationMode

The interpolation mode the effect uses on the image. There are 5 scale modes that range in quality and speed.
The default value is PerspectiveTransform3DInterpolationMode.Linear.

LocalOffset

A translation the effect performs before it rotates the projection plane. The value is specified in DIPs.
The default value is { 0, 0, 0 }.

PerspectiveOrigin

The X and Y location of the viewer in the 3D scene. The value is specified in DIPs.
The default value is { 0, 0 }.

Rotation

The angles of rotation for each axis. The units are in degrees.
The default value is { 0, 0, 0 }.

RotationOrigin

The center point of the rotation the effect performs. The value is specified in DIPs.
The default value is { 0, 0, 0 }.