Devesprit.ImageProcessor & Devesprit.ImageServer
Overlay

Description:

Adds an image overlay to the current image. If the overlay is larger than the image it will be resized to match the images dimensions.

Method Declaration
Copy Code
public ImageFactory Overlay(ImageLayer imageLayer)

ImageLayer:

Image

The System.Drawing.Image overlay the image with.

Size The System.Drawing.Size at which to render the overlay.
Opacity The opacity of the image. Between 0 and 100.
Position The Nullable<System.Drawing.Point> determining the position within the current image to render the overlay. If not set then the overlay will be centered.

Assembly:

Devesprit.ImageProcessor

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path")
.Overlay(new ImageLayer(){Image = Image.FromFile("devesprit.png"), Opacity = 90});

Original

 

 

Result