public void Add(SVGPolygonElement polygonElement) { SetFirstPoint(polygonElement.listPoints[0]); listObject.Add(new SVGGPolygon(polygonElement.listPoints)); }
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); }
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)); }