Braun-Friedman, David wrote:
The java print dialog that comes up seems to not work properly,
Too little information to comment there.
I want to first and foremost be able to compress the image to be able
to print
entirely on one page.
This is a fairly simple matter and there's more than one way
to do it, so here's just one approach
In the Printable :
1) Find the size of your image (image.getWidth() &getHeight())
2) Query the imageable area of the PageFormat
3) Use these two values to calculate a scale so that the image will fit
in the imageable area.
4) Scale the printer graphics (Graphics2D.scale()) accordingly
5) call drawimage.
http://java.sun.com/products/java-media/2D/forDevelopers/sdk12print.html
Has a tutorial on some of the printing classes.
This includes explanaation of imageable area and has some code showing
how to scale to fit.
-Phil.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".