I don't know what does this have to do with c++, but if you know your monitor's resolution, height and width, you can calculate that, but it's different for every computer.
Yes,sorry viliml..thank you for replying anyway.
I'm coding in c++ so I thought I can post here..
Anyway what I'm doing is to load an image and then i have to obtain pixel dimension in mm of that image to do other stuff.
How can i calculate this?My computer is 1440x900,but I don't want it to be computer-dependent..it's not possible?
I don't think that's possible. Every computer has it's own difeerent size and resolution, and I don't know of anything that can simply give you the computer's size and resolution, so you can make it for your computer, but not for most of the others