JavaFX : Image getting scaled to 25% and then getting printed.
问题 I am trying to print an image using JavaFX api's. Unfortunately, it is cutting a part of the image, approximately 25% and then stretching that to the entire A4 page, and printing it. What am I doing wrong with the print code. How can I instruct to fit the image to page for printing, no matter what the printer is. Kindly let me know. Code : public void printThis() { System.out.println("I was called"); // note you can use overloaded forms of the Image constructor // if you want to scale, etc