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
Properties
Bottom
public int Bottom { get; }
Property Value
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
Left
public int Left { get; }
Property Value
OriginalHeight
public int? OriginalHeight { get; }
Property Value
- int?
OriginalWidth
public int? OriginalWidth { get; }
Property Value
- int?
Right
public int Right { get; }
Property Value
Top
public int Top { get; }
Property Value
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
Simplify(Transform)
Combines this transform with a previous transform to form a single new transform.
public override Transform Simplify(Transform other)
Parameters
other
Transform