![How to calculate new height and width for an image to fit with in predefined height and width, without affecting the image real aspect ratio in java? - Stack Overflow How to calculate new height and width for an image to fit with in predefined height and width, without affecting the image real aspect ratio in java? - Stack Overflow](https://i.stack.imgur.com/13nW8.png)
How to calculate new height and width for an image to fit with in predefined height and width, without affecting the image real aspect ratio in java? - Stack Overflow
![java - Image size calculation by keeping aspect ratio with different screen resolutions - Stack Overflow java - Image size calculation by keeping aspect ratio with different screen resolutions - Stack Overflow](https://i.stack.imgur.com/y03eF.png)
java - Image size calculation by keeping aspect ratio with different screen resolutions - Stack Overflow
![Scale Factor Calculation & Examples | What Is a Scale Factor? - Video & Lesson Transcript | Study.com Scale Factor Calculation & Examples | What Is a Scale Factor? - Video & Lesson Transcript | Study.com](https://study.com/cimages/multimages/16/scalefactorexample21631721535405625512.jpg)