ImageSource to System.Drawing.Image C#

时间:2016-12-21 21:08:05

标签: c# image imagesource

在我拥有的C#应用​​程序中,我需要将一个Imagesource添加到现有的Bitmap图像中。

据我所见,我必须使用

{{1}}

我得到了g.DrawImage()我必须将我的Imagesource转换为System.Drawing.Image,我的问题是我该怎么做?

1 个答案:

答案 0 :(得分:0)

您无需将位图转换为图形。只需:Graphics.DrawImage(myBitmap, myPoint); 其中myPoint是绘制图像的坐标。