Table of Contents

Class CropEffect.Props

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

Constructors

Props()

Properties

BorderMode

Specifies how the border of the cropped region is treated.
BorderMode.Soft will apply antialiasing if the crop rectangle falls on fractional pixel coordinates.
BorderMode.Hard will result in clamping and a hard edge.
The default value is 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).

Input
Rect

The region to be cropped. The default value is { -float.Max, -float.Max, +float.Max, +float.Max }, which results in no cropping.