I make an app that have to printing image. I need to print image with a predefined size.
For example I have some image 50 x 50 px I want to resize it to some new size pixel that after printing I get image with size 5 x 5 cm.
Please see an attachment:

Thanks for help!
Hey i have used below code for resize the image in my app
Set the size according you want