|
|
@ -434,22 +434,22 @@ public class PdfGraphics2D extends Graphics2D { |
|
|
|
if (strokeWidth != 1) { |
|
|
|
if (strokeWidth != 1) { |
|
|
|
cb.setLineWidth(strokeWidth); |
|
|
|
cb.setLineWidth(strokeWidth); |
|
|
|
oldStroke = new BasicStroke(strokeWidth); |
|
|
|
oldStroke = new BasicStroke(strokeWidth); |
|
|
|
if(realPaint instanceof Color){ |
|
|
|
} |
|
|
|
Color color = (Color)realPaint; |
|
|
|
if (realPaint instanceof Color) { |
|
|
|
int alpha = color.getAlpha(); |
|
|
|
Color color = (Color) realPaint; |
|
|
|
if (alpha != currentStrokeGState) { |
|
|
|
int alpha = color.getAlpha(); |
|
|
|
currentStrokeGState = alpha; |
|
|
|
if (alpha != currentStrokeGState) { |
|
|
|
PdfGState gs = strokeGState[alpha]; |
|
|
|
currentStrokeGState = alpha; |
|
|
|
if (gs == null) { |
|
|
|
PdfGState gs = strokeGState[alpha]; |
|
|
|
gs = new PdfGState(); |
|
|
|
if (gs == null) { |
|
|
|
gs.setStrokeOpacity(alpha / 255f); |
|
|
|
gs = new PdfGState(); |
|
|
|
strokeGState[alpha] = gs; |
|
|
|
gs.setStrokeOpacity(alpha / 255f); |
|
|
|
} |
|
|
|
strokeGState[alpha] = gs; |
|
|
|
cb.setGState(gs); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
paintStroke = color; |
|
|
|
cb.setGState(gs); |
|
|
|
cb.setColorStroke(color); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
paintStroke = color; |
|
|
|
|
|
|
|
cb.setColorStroke(color); |
|
|
|
} |
|
|
|
} |
|
|
|
restoreTextRenderingMode = true; |
|
|
|
restoreTextRenderingMode = true; |
|
|
|
} |
|
|
|
} |
|
|
|