【发布时间】:2011-02-22 09:28:58
【问题描述】:
当我尝试创建 Graphics 的对象时,为什么以下操作不起作用?
System.Drawing.Graphics graphicsObj = new System.Drawing.Graphics();
(我知道我可以创建一个private System.Windows.Forms.Panel Obj;,然后如果我想让它工作,我可以创建一个CreateGraphics())
我试图为 Graphics 找到一个自定义构造函数,但我找不到。微软在哪里定义它,或者它是如何阻止它的?
【问题讨论】:
标签: c# .net graphics constructor default-constructor