Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, December 5, 2006 11:44:28 AM(UTC)
dsubryan

Groups: Registered
Posts: 15


I am having trouble getting the height and width of a rotated image in a rasterimageviewer object.
The image is 640x480 pixels.  The rasterimageviewer object is also 640x480 pixels.  When I rotate the image 90degrees the aspect ratio changes because the image becomes smaller to fit in the viewer.  How do I get the height and width of the resized image?

I was trying to find a property in the rasterimageviewer object but I cannot. 

Please Help!
Dave
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, December 6, 2006 9:50:00 AM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 355


Dave,
If you want to calculate the display width for the entire image at the current zoom level, use the following formula:
w = Viewer.CurrentXScaleFactor * Viewer.Image.Width
Amin Dodin

Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.109 seconds.