第12章 图形和图像.pptVIP

  • 1
  • 0
  • 约8.52千字
  • 约 44页
  • 2017-06-18 发布于湖北
  • 举报
12.8 路径 GraphicsPath 路径GraphicsPath 1、路径的创建 GraphicsPath p = new GraphicsPath(); Point A=new Point(10,10); Point B=new Point(100,10); p.AddLine(new Point(10,10), new Point(10,10)); p.AddRectangle(new Rectangle(AcceptButton,new Size(30,100)); 2、绘制路径 e.Graphics.DrawPath(new Pen(Color.Red), p); 3、路径填充 e.Graphics.FillPath(new SolidBrush(Color.Red), p); 12.9 区域 Region 区域 1、区域的创建 GraphicsPath p = new GraphicsPath(); p.AddString(文字区域, new FontFamily(宋体), (int)FontStyle.Bold, 100.0f, new Point(10, 10), new StringFormat()); Region r = new Region(p); 2、区域的填充 e.Graphics.FillRegion(Brushes.Blue,

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档