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

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

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

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

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 Form12 : Form
  {
    public Form12()
    {
      InitializeComponent();
    }
    private void Form12_Paint(object sender, PaintEventArgs e)
    {
      // Create a path and add two ellipses.
      GraphicsPath myPath = new GraphicsPath();
      myPath.AddEllipse(0, 0, 100, 100);
      myPath.AddEllipse(100, 0, 100, 100);
      // Draw the original ellipses to the screen in black.
      e.Graphics.DrawPath(Pens.Blue, myPath);
      // Widen the path.
      Pen widenPen = new Pen(Color.Black, 10);
      Matrix widenMatrix = new Matrix();
      widenMatrix.Translate(50, 50);
      myPath.Widen(widenPen, widenMatrix, 1.0f);
      // Draw the widened path to the screen in red.
      e.Graphics.FillPath(new SolidBrush(Color.Red), myPath);
    }
  }
}

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

相關(guān)文章

最新評論

疏勒县| 文水县| 海丰县| 卓尼县| 区。| 延川县| 鄂伦春自治旗| 新乡市| 建湖县| 汝城县| 宜川县| 津南区| 苗栗市| 望江县| 利辛县| 沂水县| 石泉县| 皋兰县| 社会| 昌江| 历史| 禄丰县| 远安县| 余干县| 九江市| 克东县| 黔南| 遂宁市| 利津县| 边坝县| 开平市| 油尖旺区| 朔州市| 望城县| 隆子县| 依安县| 华蓥市| 阿克陶县| 南郑县| 彭水| 鄂托克前旗|