mirror of https://github.com/SixLabors/ImageSharp
Browse Source
Former-commit-id: d373222acce3ea1884db6993330e7775b9347da9 Former-commit-id: 37c67ed3b3f5ca29a641f11227771cf46711b91fpull/17/head
1 changed files with 50 additions and 0 deletions
@ -0,0 +1,50 @@ |
|||
|
|||
|
|||
namespace ImageProcessor.Imaging |
|||
{ |
|||
using System.Drawing; |
|||
|
|||
/// <summary>
|
|||
/// Encapsulates the properties required to add an image layer to an image.
|
|||
/// </summary>
|
|||
public class ImageLayer |
|||
{ |
|||
/// <summary>
|
|||
/// The opacity at which to render the text.
|
|||
/// </summary>
|
|||
private int opacity = 100; |
|||
|
|||
/// <summary>
|
|||
/// The position to start creating the text from.
|
|||
/// </summary>
|
|||
private Point position = Point.Empty; |
|||
|
|||
/// <summary>
|
|||
/// Gets or sets the image.
|
|||
/// </summary>
|
|||
public Image Image { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// Gets or sets the size.
|
|||
/// </summary>
|
|||
public Size Size { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// Gets or sets the Opacity of the text layer.
|
|||
/// </summary>
|
|||
public int Opacity |
|||
{ |
|||
get { return this.opacity; } |
|||
set { this.opacity = value; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Gets or sets the Position of the text layer.
|
|||
/// </summary>
|
|||
public Point Position |
|||
{ |
|||
get { return this.position; } |
|||
set { this.position = value; } |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue