Place watermark image on other images (C#, ASP.Net)

后端 未结 2 1008
自闭症患者
自闭症患者 2020-12-02 14:41

How do I add a watermark image onto other images?

I\'m able to place text on an image as a water mark but now I have an image that I\'d like to put on there instead

2条回答
  •  广开言路
    2020-12-02 15:12

    in the same place where you call gr.DrawString, you can also do gr.DrawImage(position, size, overlayImage). It helps if your image-to-overlay is loaded from a PNG file (with transparency) to produce the best quality.

提交回复
热议问题