I have a bunch of charts created using the Java charting toolkit I wrote - these are mostly black and white charts, with blocks in aqua and sometimes other colors. They are currently saved as JPG files, and I want to paste them into a book, which I am preparing to print on request.
The book is an OpenOffice ODT file that will later be converted to PDF.
I am currently using JPG files, but the printer he uses requires 300 DPI, so I changed my chart tool to set xDensity and yDensity to 300, and resUnits to 1 using getAsTree () and then expand the chart 3 times (300/96). IMO result looks good!
Unfortunately, someone on another forum indicated that line charts are "fuzzed" in JPG files, so I suggested switching to PNG or possibly BMP files, both of which can be inserted ODT files.
My problem is that BMP does not have DPI, and PNGMetadata does not seem to support getAsTree (). Can someone point me in the right direction? Thanks.
dpi png
Paul morrison
source share