Inheritance: UnitySVG.SVGBasicElement
示例#1
0
 public void Add(SVGPolygonElement polygonElement)
 {
     SetFirstPoint(polygonElement.listPoints[0]);
     listObject.Add(new SVGGPolygon(polygonElement.listPoints));
 }
示例#2
0
    private void RenderPolygonElement(SVGPolygonElement polygonElement, ISVGPathDraw pathDraw)
    {
        int length = polygonElement.listPoints.Count;
        SVGPoint[] points = new SVGPoint[length];

        for(int i = 0; i < length; i++)
          points[i] = polygonElement.listPoints[i].MatrixTransform(matrixTransform);
        pathDraw.Polygon(points);
    }
示例#3
0
    public void Add(SVGPolygonElement polygonElement)
    {
        SetFirstPoint(polygonElement.listPoints[0]);
        SetLastPoint(polygonElement.listPoints[polygonElement.listPoints.Count - 1]);

        listType.Add(SVGPathElementType.Polygon);
        listObject.Add(polygonElement);
    }
 public void Add(SVGPolygonElement polygonElement)
 {
     SetFirstPoint(polygonElement.listPoints[0]);
     listObject.Add(new SVGGPolygon(polygonElement.listPoints));
 }