CropSuggestionOptions Class

public sealed class CropSuggestionOptions

Constructors

NameDescription
CropSuggestionOptions()

CropSuggestionOptions()

CropSuggestionOptions.cs
public CropSuggestionOptions()

No documentation is available.

Properties

NameDescription
EnergyGets what the crop keeps. Defaults to CropEnergy.Edges.
ScaleGets the size of the crop as a fraction of the largest rectangle of the aspect ratio that fits in the image, greater than 0 and at most 1. Defaults to 1: the crop removes only what the aspect ratio requires. A smaller scale also zooms on the content.

Gets what the crop keeps. Defaults to CropEnergy.Edges.

public CropEnergy Energy { get; init; }

Property value

CropEnergy

Exceptions

ArgumentOutOfRangeException
The value is not a defined CropEnergy.

Gets the size of the crop as a fraction of the largest rectangle of the aspect ratio that fits in the image, greater than 0 and at most 1. Defaults to 1: the crop removes only what the aspect ratio requires. A smaller scale also zooms on the content.

public double Scale { get; init; }

Property value

double

Exceptions

ArgumentOutOfRangeException
The value is not greater than 0 and at most 1.