Hi John, Description is a bit vague and it is hard to guess what's going on. This might be bug in java2d code or it could be bug in your application - we need more details to diagnose it.
I guess zooming is implemented with transforms but what is being transformed - image with already drawn lines or lines are drawn to transformed graphics? What are exact transforms, image type, rendering hints, etc.? Is problem applicable to all lines or only to some of them? Anything special about these lines (thickness, direction, size, etc.)? It would be really nice to see minimized testcase to understand what is happening. Could you please try to make it? I'd suggest to insert debug print mesages into Java2dRenderer.java to find out exact state of the graphics (hints, transform, etc.) and type of buffered image when image is drawn. You may also consider saving images to files (for different transforms) to find combination of factors that results in problem. -igor John Doe wrote:
Hi thx for reply. I tested today your suggestion, but the prob is still there. Thats the snippet of the Java2dRenderer.java in FOP in public BufferedImage getPageImage(PageViewport pageViewport) -snip- Graphics2D graphics = currentPageImage.createGraphics(); graphics.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON); graphics.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE); if (antialiasing) { graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); graphics.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); } if (qualityRendering) { graphics.setRenderingHin (RenderingHints.KEY_RENDERING,RenderingHints.VALUE_RENDER_QUALITY); } -snip- Jeremias from fop-board said it could be perhaps this Bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4109583 as i mentioned. So i gave it a try... I tried to paint directly to panel instead of painting a bufferedimage and then painting to the panel, but nothing changed, same prob still there. Anyone here for other suggestions? =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".