Move CropMode enum into seperate file
This commit is contained in:
18
src/Umbraco.Web.Common/ImageProcessors/CropMode.cs
Normal file
18
src/Umbraco.Web.Common/ImageProcessors/CropMode.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Umbraco.Cms.Web.Common.ImageProcessors
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the mode used to calculate a crop.
|
||||
/// </summary>
|
||||
public enum CropMode
|
||||
{
|
||||
/// <summary>
|
||||
/// Crops the image using the standard rectangle model of x, y, width, height.
|
||||
/// </summary>
|
||||
Pixels,
|
||||
|
||||
/// <summary>
|
||||
/// Crops the image using the percentages model of left, top, right, bottom.
|
||||
/// </summary>
|
||||
Percentage
|
||||
}
|
||||
}
|
||||
@@ -88,19 +88,4 @@ namespace Umbraco.Cms.Web.Common.ImageProcessors
|
||||
private static CropMode GetMode(IDictionary<string, string> commands, CommandParser parser, CultureInfo culture)
|
||||
=> parser.ParseValue<CropMode>(commands.GetValueOrDefault(Mode), culture);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enumerated cop modes to apply to cropped images.
|
||||
/// </summary>
|
||||
public enum CropMode
|
||||
{
|
||||
/// <summary>
|
||||
/// Crops the image using the standard rectangle model of x, y, width, height.
|
||||
/// </summary>
|
||||
Pixels,
|
||||
/// <summary>
|
||||
/// Crops the image using percentages model left, top, right, bottom.
|
||||
/// </summary>
|
||||
Percentage
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user