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


Forum Jump:


Users browsing this thread: 1 Guest(s)