Hi Olivier,

news <[EMAIL PROTECTED]> wrote on 04/19/2006 01:35:30 PM:

> I have since experimented with other vector graphics formats,
> namely PS and PDF, and the same defects are seen in those, too.
> Is it a dpi issue? Somethingtodowithmost Graphics2D methods being
> low-precision and taking integer rather than double arguments?

   What platform are you on?  Mac OS X?  There are some general
issues with where/how lines are drawn vs polygons that involve
a 1/2 pixel shift.  I've seen some differences in how this is
handled between Java on Mac and Win/Unix.

   It is also possible we need to account for this 1/2 pixel
shift when the draw line calls are made on the SVGGraphics2D.
Can you provide a complete stand-alone example?

> Either  way, are there any workarounds? If you can't even capture
> a bordered JPanel without these sort of artifacts, then this is a
> dead-end as far as GUI snapshots are concerned.

   It's possible you could shift the graphics 1/2 a pixel before
drawing the border.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to