本文整理汇总了C#中SVGPoint.GetLength方法的典型用法代码示例。如果您正苦于以下问题:C# SVGPoint.GetLength方法的具体用法?C# SVGPoint.GetLength怎么用?C# SVGPoint.GetLength使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SVGPoint
的用法示例。
在下文中一共展示了SVGPoint.GetLength方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PrePolygon
//--------------------------------------------------------------------------------
//Method: Polygon.
//--------------------------------------------------------------------------------
private void PrePolygon(SVGPoint[] points)
{
if((points != null) && (points.GetLength(0) > 0)) {
BeginSubBuffer();
ExpandBounds(points);
this._basicDraw.MoveTo(points[0]);
int _length = points.GetLength(0);
for(int i = 1; i < _length; i++)
this._basicDraw.LineTo(points[i]);
this._basicDraw.LineTo(points[0]);
}
}
示例2: Polyline
//-----
public void Polyline(SVGPoint[] points, float width)
{
if((int)width == 1) {
Polygon(points);
return;
}
int _length = points.GetLength(0);
if(_length > 1) {
if(_length >= 2) {
Line(points[0], points[1], width);
StrokeLineCapLeft(points[0], points[1], width);
StrokeLineCapRight(points[_length - 2], points[_length - 1], width);
for(int i = 1; i < _length - 1; i++) {
StrokeLineJoin(points[i - 1], points[i], points[i + 1], width);
Line(points[i], points[i + 1], width);
}
}
}
}
示例3: EndSubBuffer
//Fill Solid color, No fill Stroke
public void EndSubBuffer(SVGPoint[] points)
{
PreEndSubBuffer();
for(int i = 0; i < points.GetLength(0); i++)
Fill(points[i].x, points[i].y);
for(int i = this._inZoneL; i < this._subW + this._inZoneL; i++)
for(int j = this._inZoneT; j < this._subH + this._inZoneT; j++)
if(this._flag[i, j] != -1)
this._graphics.SetPixel(i, j);
}