From d7c41cf34202e729fa3b71db753448290493f002 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: d373222acce3ea1884db6993330e7775b9347da9 Former-commit-id: 37c67ed3b3f5ca29a641f11227771cf46711b91f --- 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 000000000..5daa1e8ac --- /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; } + } + } +}