I want to be able to place an image over an image, but apply a specific level of transparency for the overlaying image.
This is what I have so far:
private static Image PlaceImageOverImage(Image background, Image overlay, int x, int y, int alpha)
{
using (Graphics graphics = Graphics.FromImage(background))
{
graphics.CompositingMode = CompositingMode.SourceOver;
graphics.DrawImage(overlay, new Point(x, y));
}
return background;
}
Any help would be greatly appreciated.