【问题标题】:ImageSource to System.Drawing.Image C# [duplicate]ImageSource 到 System.Drawing.Image C# [重复]
【发布时间】:2016-12-22 05:13:01
【问题描述】:

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

据我所知,我必须使用

Graphics g = Graphics.FromImage(myBitmap);
g.DrawImage();

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

【问题讨论】:

标签: c# image imagesource


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-09-28
    • 2016-06-02
    • 1970-01-01
    • 2023-04-02
    • 2022-11-18
    • 2012-02-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多