From df8fc3248cdc9ad10b23d3901c03c7e96eb36e12 Mon Sep 17 00:00:00 2001 From: James South Date: Sun, 12 Oct 2014 23:13:37 +0100 Subject: [PATCH] Adding Image Layer Former-commit-id: 8c507a8272e04e0c4cbd763d16febf395bc419fc Former-commit-id: 45cf136909571b7b50671438fc9e3ac83eeabd68 --- src/ImageProcessor/Imaging/ImageLayer.cs | 50 ++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/ImageProcessor/Imaging/ImageLayer.cs diff --git a/src/ImageProcessor/Imaging/ImageLayer.cs b/src/ImageProcessor/Imaging/ImageLayer.cs new file mode 100644 index 0000000000..5daa1e8ac1 --- /dev/null +++ b/src/ImageProcessor/Imaging/ImageLayer.cs @@ -0,0 +1,50 @@ + + +namespace ImageProcessor.Imaging +{ + using System.Drawing; + + /// + /// Encapsulates the properties required to add an image layer to an image. + /// + public class ImageLayer + { + /// + /// The opacity at which to render the text. + /// + private int opacity = 100; + + /// + /// The position to start creating the text from. + /// + private Point position = Point.Empty; + + /// + /// Gets or sets the image. + /// + public Image Image { get; set; } + + /// + /// Gets or sets the size. + /// + public Size Size { get; set; } + + /// + /// Gets or sets the Opacity of the text layer. + /// + public int Opacity + { + get { return this.opacity; } + set { this.opacity = value; } + } + + /// + /// Gets or sets the Position of the text layer. + /// + public Point Position + { + get { return this.position; } + set { this.position = value; } + } + } +}