Table of Contents

Enum BorderMode

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

Specifies how various effects handle the rectangle falling on fractional pixel coordinates.
D2D1_BORDER_MODE

public enum BorderMode

Fields

Soft = 0

For cropping, if the crop rectangle falls on fractional pixel coordinates, the effect applies antialiasing which results in a soft edge.
For sampling, the effect pads the image with transparent black pixels as it interpolates, resulting in a soft edge.

Hard = 1

If the crop rectangle falls on fractional pixel coordinates, the effect clamps which results in a hard edge.
For sampling, the effect clamps the output to the size of the input image.