Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing JPanel - Sizing output 1

Status
Not open for further replies.

JamesGordon

Programmer
Jan 14, 2002
70
GB
I have a derived JPanel that displays circles, lines etc.
All well and good onto the screen as the sizing doesn't matter, I just use the width/height whatever is the smallest.
My problems come when I want to print.
I need the output to be 6".
If I fix the pixels at 350 the image comes out a different size dependant upon the printer.
How can I get the DPI of the printer and calculate the pixels I need to print to get my 6" print?

Regards,

James.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top