Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get Aspect ratio from code
#1
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
Reply
#2
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
Reply
#3
Thanks Ankesh.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)