最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

C#中GraphicsPath的Flatten方法用法實(shí)例

 更新時(shí)間:2015年06月12日 12:33:52   作者:zhuzhao  
這篇文章主要介紹了C#中GraphicsPath的Flatten方法,實(shí)例分析了Flatten方法的相關(guān)使用技巧,需要的朋友可以參考下

本文實(shí)例講述了C#中GraphicsPath的Flatten方法。分享給大家供大家參考。具體實(shí)現(xiàn)方法如下:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
namespace advanced_drawing
{
  public partial class Form11 : Form
  {
    public Form11()
    {
      InitializeComponent();
    }
    private void Form11_Paint(object sender, PaintEventArgs e)
    {
      Matrix matrix=new Matrix();
      matrix.Translate(10, 10);
      GraphicsPath path = new GraphicsPath();
      path.Transform(matrix);
      Rectangle rect = new Rectangle(0, 0, 100, 100);
      Graphics g = e.Graphics;
      path.AddRectangle(rect);
      g.DrawPath(Pens.Black, path);
      path.Flatten(matrix, 10);
      g.DrawPath(Pens.Red, path);
    }
  }
}

希望本文所述對(duì)大家的C#程序設(shè)計(jì)有所幫助。

相關(guān)文章

最新評(píng)論

汝城县| 斗六市| 平顶山市| 从化市| 博客| 闽清县| 荆门市| 贵港市| 普定县| 乌鲁木齐县| 雷州市| 衡山县| 贺州市| 大方县| 时尚| 安康市| 改则县| 安乡县| 三门峡市| 武鸣县| 淄博市| 明溪县| 勃利县| 彰化县| 班戈县| 平乐县| 铜山县| 军事| 清远市| 达拉特旗| 富平县| 靖江市| 噶尔县| 海伦市| 长寿区| 武川县| 崇阳县| 关岭| 仁寿县| 甘南县| 贵州省|