|
Hello,
I have a component which draws a BufferedImage onto
a JPanel.
I have another component which extends the original
component and draws some lines on top of the BufferedImage.
In the parent component, the BufferedImage is drawn
in a transformed Graphics2D, i.e. the image is translated and
scaled.
In the child component, I create a new
AffineTransform so that the lines drawn on top of the image will be drawn using
the identity transform.
What I see is this: where ever the
parent/background image is transparent, the child lines are drawn 1 pixel wide
and are not distorted.
However, where ever the child lines intersect
non-transparent parent image, they are somewhat blurred.
Is there someway to prevent this? I had assumed
that because I was using an identity transform for drawing, that the lines would
be distortion free.
Thank you,
Ted Hill
|
- [JAVA2D] paintComponent( ) question Ted Hill
- Ted Hill
