mirror of https://github.com/SixLabors/ImageSharp
Browse Source
Former-commit-id: f5ad9f7c78aae6a11245490e39274078489af081 Former-commit-id: 381fce4fcaaf617203e3e4e294146bbf1b7a5b38pull/17/head
5 changed files with 62 additions and 11 deletions
@ -0,0 +1,30 @@ |
|||||
|
// --------------------------------------------------------------------------------------------------------------------
|
||||
|
// <copyright file="ImageLayer.cs" company="James South">
|
||||
|
// Copyright (c) James South.
|
||||
|
// Licensed under the Apache License, Version 2.0.
|
||||
|
// </copyright>
|
||||
|
// <summary>
|
||||
|
// Encapsulates the properties required to add an rotation layer to an image.
|
||||
|
// </summary>
|
||||
|
// --------------------------------------------------------------------------------------------------------------------
|
||||
|
|
||||
|
namespace ImageProcessor.Imaging |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// A rotation layer to apply an inside rotation to an image
|
||||
|
/// </summary>
|
||||
|
public class RotateInsideLayer |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// Gets or sets the rotation angle.
|
||||
|
/// </summary>
|
||||
|
public float Angle { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Gets or sets a value indicating whether to keep the image dimensions.
|
||||
|
/// If set to true, the image is zoomed inside the area.
|
||||
|
/// If set to false, the area is resized to match the rotated image.
|
||||
|
/// </summary>
|
||||
|
public bool KeepImageDimensions { get; set; } |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue