在现有图像上动态添加图像 [英] Adding image dynamically on the existing image

查看:92
本文介绍了在现有图像上动态添加图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


当我从数据库中单击图像时,我想将图像动态地添加到另一个画布上,并在其中加上一些当前图像.

Hi,
I want to get an image dynamically on to the another canvas with some additional images with the present image when clicked on it from database.

推荐答案

这是胡言乱语,但是我想一想您的意思是,您想在另一个图像上绘制一个图像.这是微不足道的.使用Graphics.FromBitmap或FromImage创建一个Graphics对象,然后将图像绘制到该Graphics对象中.然后它将在您从中创建Graphics对象的位图上.
This is gibberish, but I think what you mean is, you want to draw one image on top of another. This is trivial. Create a Graphics object using Graphics.FromBitmap or FromImage and then draw your image into this graphics object. It will then be on the bitmap you created the Graphics object from.


这篇关于在现有图像上动态添加图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆