Table of Contents

Class CropTransform

Namespace
NAPS2.Images.Transforms
Assembly
NAPS2.Images.dll
public record CropTransform : Transform, IEquatable<Transform>, IEquatable<CropTransform>
Inheritance
CropTransform
Implements
Inherited Members

Constructors

CropTransform()

public CropTransform()

CropTransform(int, int, int, int, int?, int?)

public CropTransform(int left, int right, int top, int bottom, int? originalWidth = null, int? originalHeight = null)

Parameters

left int
right int
top int
bottom int
originalWidth int?
originalHeight int?

Properties

Bottom

public int Bottom { get; }

Property Value

int

IsNull

Gets a value that indicates whether the transform is a null transformation (i.e. has no effect).

public override bool IsNull { get; }

Property Value

bool

Left

public int Left { get; }

Property Value

int

OriginalHeight

public int? OriginalHeight { get; }

Property Value

int?

OriginalWidth

public int? OriginalWidth { get; }

Property Value

int?

Right

public int Right { get; }

Property Value

int

Top

public int Top { get; }

Property Value

int

Methods

CanSimplify(Transform)

Determines if this transform performed after another transform can be combined to form a single transform.

public override bool CanSimplify(Transform other)

Parameters

other Transform

Returns

bool

Simplify(Transform)

Combines this transform with a previous transform to form a single new transform.

public override Transform Simplify(Transform other)

Parameters

other Transform

Returns

Transform