mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
// --------------------------------------------------------------------------------------------------------------------
|
|
// <copyright file="ResizeMode.cs" company="James South">
|
|
// Copyright (c) James South.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
// </copyright>
|
|
// <summary>
|
|
// Enumerated resize modes to apply to resized images.
|
|
// </summary>
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
namespace ImageProcessor.Imaging
|
|
{
|
|
/// <summary>
|
|
/// Enumerated resize modes to apply to resized images.
|
|
/// </summary>
|
|
public enum ResizeMode
|
|
{
|
|
/// <summary>
|
|
/// Pads the resized image to fit the bounds of its container.
|
|
/// </summary>
|
|
Pad,
|
|
|
|
/// <summary>
|
|
/// Stretches the resized image to fit the bounds of its container.
|
|
/// </summary>
|
|
Stretch,
|
|
|
|
/// <summary>
|
|
/// Crops the resized image to fit the bounds of its container.
|
|
/// </summary>
|
|
Crop,
|
|
|
|
/// <summary>
|
|
/// Constrains the resized image to fit the bounds of its container.
|
|
/// </summary>
|
|
Max
|
|
}
|
|
}
|
|
|