Making Text a solid black when creating image

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Chris Hoffman

Making Text a solid black when creating image

Post by Chris Hoffman » Fri May 24, 2002 4:18 pm

Hello,
I was wondering if it is possible to make the text in a chart a solid black color when using JFreeChart.createBufferedImage(). When I use this method to create an image for print in a PDF, all of the text in the chart shows up in black combined with many shades of gray where a letter is curved. While this combination of black and shades of gray looks great in an Applet or an HTML page shown on a computer screen (where pixels are much smaller), it looks like "crap" when using it to print to a PDF. Is there a way to "turn off" using the shades of grey and only print the text in a solid black color??

I can sent you a sample PDF if you wish to see an example of what I mean.

Thank-you very much.
-Chris-

jim

Re: Making Text a solid black when creating image

Post by jim » Fri May 24, 2002 5:34 pm

check out David's documentation on using iText to generate pdf charts (jfreechart2pdf.pdf on http://sourceforge.net/project/showfile ... p_id=15494).

I use jpeg to send charts to the browser, but iText when creating pdf's. The pdf's print much nicer if you use iText.

--jim

Locked