View Source
Class CropWebProcessor
Allows the cropping of images.
Inheritance
System.Object
Assembly: Umbraco.Cms.Imaging.ImageSharp.dll
Syntax
public class CropWebProcessor : IImageWebProcessor
Fields
View Source
Coordinates
The command constant for the crop coordinates.
Declaration
public const string Coordinates = "cc"
Field Value
| Type |
Description |
| System.String |
|
View Source
Orient
The command constant for the resize orientation handling mode.
Declaration
public const string Orient = "orient"
Field Value
| Type |
Description |
| System.String |
|
Properties
View Source
Commands
Declaration
public IEnumerable<string> Commands { get; }
Property Value
| Type |
Description |
| IEnumerable<System.String> |
|
Methods
View Source
Declaration
public FormattedImage Process(FormattedImage image, ILogger logger, CommandCollection commands, CommandParser parser, CultureInfo culture)
Parameters
| Type |
Name |
Description |
| FormattedImage |
image |
|
| ILogger |
logger |
|
| CommandCollection |
commands |
|
| CommandParser |
parser |
|
| System.Globalization.CultureInfo |
culture |
|
Returns
| Type |
Description |
| FormattedImage |
|
View Source
Declaration
public bool RequiresTrueColorPixelFormat(CommandCollection commands, CommandParser parser, CultureInfo culture)
Parameters
| Type |
Name |
Description |
| CommandCollection |
commands |
|
| CommandParser |
parser |
|
| System.Globalization.CultureInfo |
culture |
|
Returns
| Type |
Description |
| System.Boolean |
|