Table of Contents

Class StraightenEffect.Props

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

Constructors

Props()

Properties

Angle

A float value that specifies how much the image should be rotated. The allowed range is -45.0 to 45.0. The default value is 0.0.

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).

Input
MaintainSize

A boolean value that specifies whether the image will be scaled such that the original size is maintained without any invalid regions. The default value is true.

ScaleMode

Specifies the scaling mode that should be use. The default value is StraightenScaleMode.Linear.