Browse Source

Adding Image Layer

Former-commit-id: 8c507a8272e04e0c4cbd763d16febf395bc419fc
Former-commit-id: 45cf136909571b7b50671438fc9e3ac83eeabd68
pull/17/head
James South 12 years ago
parent
commit
df8fc3248c
  1. 50
      src/ImageProcessor/Imaging/ImageLayer.cs

50
src/ImageProcessor/Imaging/ImageLayer.cs

@ -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…
Cancel
Save