Hi,
I would like to create PNG B&W (1-bit color) is it possible?
Thanks
Can I get it B&W(1-bit color) PNG ?
-
- Posts: 3
- Joined: Wed Nov 26, 2008 9:06 pm
Can I get it B&W(1-bit color) PNG ?
From Brazil
-
- Posts: 3
- Joined: Wed Nov 26, 2008 9:06 pm
Taqua, Thanks for the answer.
Actually I have already tried to convert images in another process (after creating images). About the textures I'll take care of them..
But, is there an option when saving images to save in 1-bit color? (Because I could not find on the API docs, neither on the web..)
Could you give me some help on that?
Thanks.
Actually I have already tried to convert images in another process (after creating images). About the textures I'll take care of them..
But, is there an option when saving images to save in 1-bit color? (Because I could not find on the API docs, neither on the web..)
Could you give me some help on that?
Thanks.
From Brazil
You have to render the chart into a buffered-image. For that, create the image, grab the Graphics2D for the image and then call "JFreeChart#draw(..)" with the graphics2d and a rectangle that fits your image's size.
JFreeChart itself does not offer a helper method for that, and as this is standard Java2D-programming, there is no need for such a method either.
JFreeChart itself does not offer a helper method for that, and as this is standard Java2D-programming, there is no need for such a method either.
-
- Posts: 3
- Joined: Wed Nov 26, 2008 9:06 pm