PictureHelper.cs 472 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Drawing;
  6. namespace Bowin.Common.Drawing
  7. {
  8. public class PictureHelper
  9. {
  10. public static Image AddOverlay(Image sourceImg, Image overlay, int topPixcel, int leftPixcel)
  11. {
  12. var result = Graphics.FromImage(sourceImg);
  13. result.DrawImage(overlay, new Point(leftPixcel, topPixcel));
  14. return sourceImg;
  15. }
  16. }
  17. }