How to get image width and height in cm

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

Post Reply
navram
Posts: 20
Joined: Sat May 13, 2006 7:42 pm
Location: India
Contact:

How to get image width and height in cm

Post by navram » Sun May 14, 2006 1:30 pm

can any body tell me how can i get image width and height in cm.... now i get it in pixels.... plz help....

User avatar
MaierMan
Posts: 78
Joined: Wed Aug 04, 2004 8:32 pm
Contact:

Re: How to get image width and height in cm

Post by MaierMan » Mon May 15, 2006 11:06 pm

navram wrote:can any body tell me how can i get image width and height in cm.... now i get it in pixels.... plz help....
hmm... not quite sure.
Actually It should be px / dpi * ci.
ci means a constant describing "cm : inch" which is 2.54 : 1 (as dpi = dots/px per inch).

example:
2000px / 300dpi * 2.54 ~ 16,93cm

(hm... math correct? :p)

navram
Posts: 20
Joined: Sat May 13, 2006 7:42 pm
Location: India
Contact:

Thanks....

Post by navram » Wed May 24, 2006 7:27 pm

Thank u 4 ur reply.... i think it works....

Post Reply