-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
It seems that currently only java.awt.BasicStroke is supported.
Something like this could perhaps be added to the code:
diff --git a/dev/lib-rototor-graphics2d/pdfbox-graphics2d/graphics2d/src/main/java/de/rototor/pdfbox/graphics2d/PdfBoxGraphics2D.java b/dev/lib-rototor-graphics2d/pdfbox-graphics2d/graphics2d/src/main/java/de/rototor/pdfbox/graphics2d/PdfBoxGraphics2D.java
index 4484b19a3c..12b9c57c16 100644
--- a/dev/lib-rototor-graphics2d/pdfbox-graphics2d/graphics2d/src/main/java/de/rototor/pdfbox/graphics2d/PdfBoxGraphics2D.java
+++ b/dev/lib-rototor-graphics2d/pdfbox-graphics2d/graphics2d/src/main/java/de/rototor/pdfbox/graphics2d/PdfBoxGraphics2D.java
@@ -588,6 +588,18 @@ public class PdfBoxGraphics2D extends Graphics2D
};
public void draw(Shape s)
+ {
+ if(stroke!=null&&!(stroke instanceof BasicStroke))
+ {
+ fill(stroke.createStrokedShape(s));
+ }
+ else
+ {
+ drawIntern(s);
+ }
+ }
+
+ public void drawIntern(Shape s)
{
checkNoCopyActive();
/*
Metadata
Metadata
Assignees
Labels
No labels