This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, December 5, 2006 11:39:28 AM(UTC)
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
#2
Posted
:
Wednesday, December 6, 2006 9:45:00 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
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.
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.