Pixel size ?

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

Pixel size ?

Post by martk » Thu May 15, 2003 2:56 pm

Hi all,

a quickie - when generating PNG/JPG/PDF from a chart, the graph size is supplied in pixels. First of all - how big is a JFreeChart pixel (in mm) ? Secondly - is the size specific to JFreeChart or in any way standardized ?

Thanks in advance :-)

Taqua
JFreeReport Project Leader
Posts: 698
Joined: Fri Mar 14, 2003 3:34 pm
Contact:

Post by Taqua » Thu May 15, 2003 8:31 pm

Hi,

this is the Java standard way: One pixel is 1/72 inch, the standard graphics resolution in java. All (unscaled) graphics operations work with this resolution.

For printering, a higher resolution is used for printing, all coordinates are transformed to fit the output target.

Have more fun,
said Thomas

Locked