Example #1
0
        public Image OverlayImages(Image imageBackground, Image imageOverlay)
        {
            imageOverlay = imageOverlay.Resize(imageBackground.Width, imageBackground.Height);
            Image img = new Bitmap(imageBackground.Width, imageBackground.Height);

            using (Graphics gr = Graphics.FromImage(img))
            {
                gr.DrawImage(imageBackground, new Point(0, 0));
                gr.DrawImage(imageOverlay, new Point(0, 0));
            }
            return(img);
        }
 public Image OverlayImages(Image imageBackground, Image imageOverlay)
 {
     imageOverlay = imageOverlay.Resize(imageBackground.Width, imageBackground.Height);
     Image img = new Bitmap(imageBackground.Width, imageBackground.Height);
     using (Graphics gr = Graphics.FromImage(img))
     {
         gr.DrawImage(imageBackground, new Point(0, 0));
         gr.DrawImage(imageOverlay, new Point(0, 0));
     }
     return img;
 }