Hi
The problem with SVGGraphics2D was actually a small bug in the PNGImageEncoder.java.
Thanks to Thomas for finding out and the bugfix.
Everything now works perfect! :-)
Regards
Carsten Birn
> Hi Carsten,
>
> Carsten L. Birn wrote:
>
> > It looks like your patch is working :o)
> > The line
Hi Carsten,
I actually suspect the problem was/is in the PNG encoder. I've
attached a potential patch. It would be great if you could apply
the change and see if this fixes your original problem.
Index: sources/org/apache/batik/ext/awt/image/codec/PNGImageEncoder.java
=
Hi Thomas
You are right about the drawImage method.
The strange thing is that my icon is drawn correctly when it is painted into a JPanel.
I load my icons using javax.imageio.ImageIO.read and this returns a bufferedImage.
I've found an approach that works and it is:
drawImage(BufferedImage, B
On Fri, 2004-09-24 at 08:34, Carsten Birn wrote:
> Hi
>
> I have discovered a problem when trying to store a GIF image using the SVGGraphics2D
> context. I am calling the drawImage(BufferedImage, posX, posY, ImageObserver) method.
> When i have an Icon with 1 color(ore more) Black + Transparency
Hi Carsten,
Carsten Birn wrote:
I have discovered a problem when trying to store a GIF image using the
SVGGraphics2D context. I am calling the drawImage(BufferedImage, posX,
posY, ImageObserver) method.
I think you are actually calling:
drawImage(Image, posX, posY, ImageObserver)