本文整理汇总了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();
}
}
示例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);
}
示例3: drawDottedLine
public static void drawDottedLine(Graphics g, Pen p, Point[] arr, float[] _dash_vals)
{
p.DashPattern = _dash_vals;
g.DrawCurve(p, arr);
}
示例4: Draw
// Draw this path object.
public override void Draw(Graphics graphics, Pen pen)
{
graphics.DrawCurve(pen, points, offset, numberOfSegments, tension);
}