Ver código fonte

handles path transform properly, makes a difference to the line width


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194518 13f79535-47bb-0310-9956-ffa450edef68
pull/33/head
Keiron Liddle 22 anos atrás
pai
commit
73a104189c
1 arquivos alterados com 11 adições e 1 exclusões
  1. 11
    1
      src/org/apache/fop/svg/PDFGraphics2D.java

+ 11
- 1
src/org/apache/fop/svg/PDFGraphics2D.java Ver arquivo

@@ -511,7 +511,17 @@ public class PDFGraphics2D extends AbstractGraphics2D {
applyPaint(getPaint(), false);
applyStroke(getStroke());

PathIterator iter = s.getPathIterator(getTransform());
AffineTransform trans = getTransform();
double[] tranvals = new double[6];
trans.getMatrix(tranvals);
currentStream.write(PDFNumber.doubleOut(tranvals[0]) + " "
+ PDFNumber.doubleOut(tranvals[1]) + " "
+ PDFNumber.doubleOut(tranvals[2]) + " "
+ PDFNumber.doubleOut(tranvals[3]) + " "
+ PDFNumber.doubleOut(tranvals[4]) + " "
+ PDFNumber.doubleOut(tranvals[5]) + " cm\n");

PathIterator iter = s.getPathIterator(new AffineTransform());
while (!iter.isDone()) {
double vals[] = new double[6];
int type = iter.currentSegment(vals);

Carregando…
Cancelar
Salvar