随笔分类 -  .net图形设计

摘要:此示例说明如何在窗体上绘制实心椭圆。 示例 System.Drawing.SolidBrush myBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Red); System.Drawing.Graphics formGraphics = this.CreateGraphics(); formGraphics.Fi... 阅读全文
posted @ 2007-06-03 22:44 过河卒A 阅读(2173) 评论(3) 推荐(0)
摘要:此示例说明如何创建 SolidBrush 对象。 示例 System.Drawing.SolidBrush myBrush; myBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Black); 可靠编程 您应该始终对使用系统资源的任何对象(如 Brush 对象)调用 Dispose。 阅读全文
posted @ 2007-06-03 22:40 过河卒A 阅读(1977) 评论(0) 推荐(0)
摘要:示例 System.Drawing.Pen myPen; myPen = new System.Drawing.Pen(System.Drawing.Color.Black); 可靠编程 您应该始终对使用系统资源的任何对象(如 Pen 对象)调用 Dispose。 阅读全文
posted @ 2007-06-03 22:39 过河卒A 阅读(1861) 评论(1) 推荐(0)
摘要:此示例创建并填充 Bitmap 对象,然后在现有的 Windows 窗体 PictureBox 控件中显示该对象。 示例 void CreateBitmap() { System.Drawing.Bitmap flag = new System.Drawing.Bitmap(10, 10); for( int x = 0; x < flag.Height; ++x ) for( int y = ... 阅读全文
posted @ 2007-06-03 22:39 过河卒A 阅读(2481) 评论(1) 推荐(0)