全局变形和局部变形,图形填充,PaintC#源代码Graphics myGraphics=e.Graphics;

时间:2012-01-21 07:25:48
【文件属性】:
文件名称:全局变形和局部变形,图形填充,PaintC#源代码Graphics myGraphics=e.Graphics;
文件大小:33KB
文件格式:RAR
更新时间:2012-01-21 07:25:48
全局变形和局部变形,图形填充,PaintC#源代码Graphics myGraphics=e.Graphics; 全局变形和局部变形,图形填充,PaintC#源代码Graphics myGraphics=e.Graphics; Rectangle myRectangle = new Rectangle(100, 100, 60, 60); GraphicsPath myGraphicsPath = new GraphicsPath(); myGraphicsPath.AddRectangle(myRectangle); SolidBrush mySolidBrush1=new SolidBrush(Color.Blue); myGraphics.FillPath(mySolidBrush1, myGraphicsPath); Matrix myPathMatrix = new Matrix(); myPathMatrix.Scale(2, 1); myPathMatrix.Rotate(30, MatrixOrder.Append); myGraphicsPath.Transform(myPathMatrix); SolidBrush mySolidBrush2=new SolidBrush(Color.Red); myGraphics.FillPath(mySolidBrush2, myGraphicsPath); myGraphics.DrawEllipse(Pens.Blue, 0, 0, 100, 50); myGraphics.ScaleTransform(1, 0.5f); myGraphics.TranslateTransform(50, 0, MatrixOrder.Append); myGraphics.RotateTransform(30, MatrixOrder.Append); myGraphics.DrawEllipse(Pens.Red, 0, 0, 100, 50); VisualStudio2008创建
【文件预览】:
solid
----solid.suo(13KB)
----solid()
--------Form1.cs(2KB)
--------bin()
--------solid.csproj(4KB)
--------obj()
--------Properties()
--------Program.cs(486B)
--------Form1.Designer.cs(1KB)
--------Form1.resx(6KB)
----新建 文本文档.txt(996B)
----solid.sln(905B)

网友评论

  • 还不错,有参考价值
  • 不错,有参考价值
  • 还不错,有参考价值