随笔分类 - .net图形设计
摘要:此示例说明如何在窗体上绘制实心椭圆。 示例 System.Drawing.SolidBrush myBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Red); System.Drawing.Graphics formGraphics = this.CreateGraphics(); formGraphics.Fi...
        阅读全文
                
摘要:此示例说明如何创建 SolidBrush 对象。 示例 System.Drawing.SolidBrush myBrush; myBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Black); 可靠编程 您应该始终对使用系统资源的任何对象(如 Brush 对象)调用 Dispose。
        阅读全文
                
摘要:示例 System.Drawing.Pen myPen; myPen = new System.Drawing.Pen(System.Drawing.Color.Black); 可靠编程 您应该始终对使用系统资源的任何对象(如 Pen 对象)调用 Dispose。
        阅读全文
                
摘要:此示例创建并填充 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 = ...
        阅读全文
                
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号