Micro Focus QTP (UFT) Forums
How to get Aspect ratio from code - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to get Aspect ratio from code (/Thread-How-to-get-Aspect-ratio-from-code)



How to get Aspect ratio from code - sams001 - 01-03-2013

Hi,

Does anyone have idea how to get aspect ratio of an image through qtp. If its not possible to get it using qtp tool, is there any other way to get it from other means?

Thanks
Sams


RE: How to get Aspect ratio from code - Ankesh - 01-03-2013

Sam,

The aspect ratio is the ratio of the width of a shape to its height.

For an image, u can get the width and height property using GetRoProperty().

So the aspect ratio will be Width:Height

Regards,
Ankesh


RE: How to get Aspect ratio from code - sams001 - 01-09-2013

Thanks Ankesh.