public void DrawBezier (Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) { geom.GeneralPath path = new geom.GeneralPath(); path.moveTo(x1,y1); path.curveTo(x2,y2,x3,y3,x4,y4); DrawShape(pen, path); }
static awt.Shape GetNormalizedShape(awt.Shape shape, geom.AffineTransform t) { geom.PathIterator iter = new NormalizingPathIterator(shape.getPathIterator(t)); geom.GeneralPath path = new geom.GeneralPath(iter.getWindingRule()); path.append(iter, false); return path; }