I would like to print pictures from my application in 2 different size (user picks either of sizes) the sizes I want are A4 (210×297mm in paper) and 4R (102 × 152 mm in paper). If there is multiple pictures selected for printing and 4R size is selected I would also be able to print 2 of those / page (I think I can figure this out myself after getting the printing ratios correct).
I'm using this example to print:
http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/Demonstratesprintingimages.htmBut how I can set the picture size so it will be either of my wanted sizes in paper? And will it differ in different printers/computers? This is first time I'm doing printing myself.
Is this example even good for my purpose? And if not, could you suggest something better?
Thanks.