Table of Contents

Class Transform

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

Properties

IsNull

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

public virtual bool IsNull { get; }

Property Value

bool

Methods

AddOrSimplify(ImmutableList<Transform>, Transform)

Appends the specified transform to the list, merging with the previous transform on the list if simplication is possible.

public static ImmutableList<Transform> AddOrSimplify(ImmutableList<Transform> transformList, Transform transform)

Parameters

transformList ImmutableList<Transform>
transform Transform

Returns

ImmutableList<Transform>

CanSimplify(Transform)

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

public virtual 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 virtual Transform Simplify(Transform other)

Parameters

other Transform

Returns

Transform