C#程序设计基础熊壮第9章:图形和图像处理课件教学.pptVIP

  • 0
  • 0
  • 约1.4万字
  • 约 64页
  • 2017-01-01 发布于广东
  • 举报

C#程序设计基础熊壮第9章:图形和图像处理课件教学.ppt

* * 9.2图形处理基础 Graphics graphics = e.Graphics; //获取Graphics对象 Font font = new Font(“隶书”,30); // 定义字体 Rectangle rect = new Rectangle(0,0,400,100); //定义矩形 LinearGradientBrush brush1 = new LinearGradientBrush(rect, Color.Red, Color.Pink,LinearGradientMode. Vertical); graphics.DrawString(好好学习,天天向上,font,brush1,rect); Point point1 = new Point(0,50); //起始坐标 Point point2 = new Point(400,150); //终点坐标 LinearGradientBrush brush2 = new LinearGradientBrush(point1, point2, Color.Red, Color.Blue); graphics.DrawString(好好学习,天天向上,font,brush2,point1); 9.2.2 图形绘制的应用举例 C#中提供多个与鼠标相关的事件: MouseDown事件、MouseCli

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档