focus330 Member Licensed User Longtime User Jul 12, 2017 #1 Hi I have to save an image ( canvas object). It's a photo that must result with specific metric ( 4 cm x 3 cm) when printed. How can I do it ? Thanks
Hi I have to save an image ( canvas object). It's a photo that must result with specific metric ( 4 cm x 3 cm) when printed. How can I do it ? Thanks
Erel B4X founder Staff member Licensed User Longtime User Jul 12, 2017 #2 You should use this library to print: https://www.b4x.com/android/forum/threads/b4j-print-javafx8.49836/#content I never worked with this library. I see that the native API allows you to get the printer resolution: http://docs.oracle.com/javase/8/javafx/api/index.html?javafx/print/Printer.html You can probably use it to find the required scale. Upvote 0
You should use this library to print: https://www.b4x.com/android/forum/threads/b4j-print-javafx8.49836/#content I never worked with this library. I see that the native API allows you to get the printer resolution: http://docs.oracle.com/javase/8/javafx/api/index.html?javafx/print/Printer.html You can probably use it to find the required scale.
focus330 Member Licensed User Longtime User Jul 12, 2017 #3 Thanks Erel. I don't know if it'll be useful. I have to study it more but it seems that I can only use with defined standard papers ( A3, A4, ecc ). It seems no possible to create my own layout by code. Upvote 0
Thanks Erel. I don't know if it'll be useful. I have to study it more but it seems that I can only use with defined standard papers ( A3, A4, ecc ). It seems no possible to create my own layout by code.