【问题标题】:System.Drawing does not exist [duplicate]System.Drawing 不存在[重复]
【发布时间】:2013-03-08 14:08:32
【问题描述】:

我在 Windows Phone 7.1 上开发,找不到 System.Drawing,例如在此代码中

public static System.Drawing.Bitmap sfondo_panorama 
{
    get 
    {
        object obj = ResourceManager.GetObject("sfondo_panorama", resourceCulture);
        return ((System.Drawing.Bitmap)(obj));
    }
}

【问题讨论】:

  • 我不认为 System.Drawing 存在于 WP7 运行时。
  • 我认为它也不存在。你可能不得不使用WriteableBitmap 编辑:或者根据使用情况,BitmapImage
  • 你是否使用了一些自动插入这些的插件?

标签: c# windows-phone-7


【解决方案1】:

我认为 System.Drawing 在 WP7 中不可用,我不确定您要做什么,但请尝试 System.Windows.MediaSystem.Windows.Media.Imaging

【讨论】:

猜你喜欢
  • 2011-10-19
  • 2019-09-22
  • 2017-08-18
  • 2011-08-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-01-09
相关资源
最近更新 更多