【发布时间】:2019-01-23 21:17:01
【问题描述】:
根据the docs,命名空间System.Drawing 中应该有一个用于缩略图处理的类。我想创建一个具有图像作为属性的模型,然后将其保存到数据库中。但是,当我尝试下面的代码时,我收到一个错误,即在该命名空间中找不到该类,无论文档另有说明。
using System.Drawing;
public class Donkey
{
public Image Image { get;set; }
}
我错过了什么?!
我用谷歌搜索过,但只找到了old posts 和examples that seem not to work。
【问题讨论】: