transparent image has black background

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
dbrentw
Posts: 3
Joined: Thu Nov 20, 2008 10:06 pm

transparent image has black background

Post by dbrentw » Thu Mar 20, 2014 8:24 pm

Greetings all

First, I'm using JFreeChart for Eclipse SWT.

I hope I can get some quick help. I've spent over a week trying to properly draw images on a chart. I started by using the XYImageAnnotation feature but abandoned that when I could not prevent images from being scaled when the plot scaled. I resolved this by drawing the images myself after the plot was drawn. The problem I'm trying to address now is image transparency. I am creating transparent PNG files using the batik libraries (they appear transparent in a table in another window), but when I draw the images on the chart using the plot's SWTGraphics2D object they have black backgrounds.

Does anyone have any ideas? I'm chasing my tail.

Thanks

Locked