public TrapezoidList tesselateStroke( Shape s, BasicStroke bs, boolean thin, boolean adjust, boolean antialias, AffineTransform at, Region clip) { float lw; if (thin) { if (antialias) { lw = 0.5f; } else { lw = 1.0f; } } else { lw = bs.getLineWidth(); } convertPathData(s, at); double[] dashArray = floatToDoubleArray(bs.getDashArray()); xTrapArray[0] = 0; xTrapArray = tesselateStrokeNative( points.getArray(), ops.getArray(), points.getSize(), ops.getSize(), xTrapArray, xTrapArray.length, lw, bs.getEndCap(), bs.getLineJoin(), bs.getMiterLimit(), dashArray, dashArray.length, bs.getDashPhase(), 1, 0, 0, 0, 1, 0, clip.getLoX(), clip.getLoY(), clip.getHiX(), clip.getHiY()); return new TrapezoidList(xTrapArray); }
public TrapezoidList tesselateFill(Shape s, AffineTransform at, Region clip) { int windingRule = convertPathData(s, at); xTrapArray[0] = 0; xTrapArray = tesselateFillNative( points.getArray(), ops.getArray(), points.getSize(), ops.getSize(), xTrapArray, xTrapArray.length, getCairoWindingRule(windingRule), clip.getLoX(), clip.getLoY(), clip.getHiX(), clip.getHiY()); return new TrapezoidList(xTrapArray); }