当前位置: 首页>>代码示例>>C#>>正文


C# Graphics.DrawCurve方法代码示例

本文整理汇总了C#中Graphics.DrawCurve方法的典型用法代码示例。如果您正苦于以下问题:C# Graphics.DrawCurve方法的具体用法?C# Graphics.DrawCurve怎么用?C# Graphics.DrawCurve使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Graphics的用法示例。


在下文中一共展示了Graphics.DrawCurve方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddLine

    private void AddLine(Graphics graphics1, Rectangle rect)
    {
        int num;
        float width;
        int num2;
        switch (this._lineNoise)
        {
        case CaptchaImage.LineNoiseLevel.None:
        default:
            return;

        case CaptchaImage.LineNoiseLevel.Low:
            num = 4;
            width = Convert.ToSingle((double)this._height / 31.25);
            num2 = 1;
            break;

        case CaptchaImage.LineNoiseLevel.Medium:
            num = 5;
            width = Convert.ToSingle((double)this._height / 27.7777);
            num2 = 1;
            break;

        case CaptchaImage.LineNoiseLevel.High:
            num = 3;
            width = Convert.ToSingle((double)this._height / 25.0);
            num2 = 2;
            break;

        case CaptchaImage.LineNoiseLevel.Extreme:
            num = 3;
            width = Convert.ToSingle((double)this._height / 22.7272);
            num2 = 3;
            break;
        }
        checked
        {
            PointF[] array = new PointF[num + 1];
            Pen pen = new Pen(Color.Black, width);
            int arg_B8_0 = 1;
            int num3 = num2;
            for (int i = arg_B8_0; i <= num3; i++)
            {
                int arg_C0_0 = 0;
                int num4 = num;
                for (int j = arg_C0_0; j <= num4; j++)
                {
                    array[j] = this.RandomPoint(rect);
                }
                graphics1.DrawCurve(pen, array, 1.75f);
            }
            pen.Dispose();
        }
    }
开发者ID:ascvorcov,项目名称:Captcha,代码行数:54,代码来源:CaptchaImage.cs

示例2: Fill

		// Fill this path object.
		public override void Fill(Graphics graphics, Brush brush,
								  Pen penBrush, FillMode fillMode)
				{
					graphics.DrawCurve(penBrush, points, offset, numberOfSegments, tension);
				}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:6,代码来源:GraphicsPath.cs

示例3: drawDottedLine

 public static void drawDottedLine(Graphics g, Pen p, Point[] arr, float[] _dash_vals)
 {
     p.DashPattern = _dash_vals;
     g.DrawCurve(p, arr);
 }
开发者ID:islammagdysaieed,项目名称:IntelligentScissors,代码行数:5,代码来源:MainForm.cs

示例4: Draw

		// Draw this path object.
		public override void Draw(Graphics graphics, Pen pen)
				{
					graphics.DrawCurve(pen, points, offset, numberOfSegments, tension);
				}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:5,代码来源:GraphicsPath.cs


注:本文中的Graphics.DrawCurve方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。