This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, November 7, 2008 1:53:44 AM(UTC)
Groups: Registered
Posts: 12
Hello,
my problem is i used in c++ the function EnableCenterOnZoom, but in C# examples i can't find the appropriate function.
Can u help me, to get an example?
Thanks
ingo
#2
Posted
:
Sunday, November 9, 2008 6:21:17 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Ingo,
Which version of LEADTOOLS .NET components are you using?
#3
Posted
:
Sunday, November 9, 2008 10:15:34 PM(UTC)
Groups: Registered
Posts: 12
Hello Yasir,
i am using Lead 14.5.0.16.
The Option RasterImageViewer.HorizontalAlignMode and RasterImageViewer.VerticalAlignMode doesn't exist.
In which version of Raster Image Viewer these properties are available?
Thank you
Ingo
#4
Posted
:
Monday, November 10, 2008 5:41:42 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
After zooming the image you can use the RasterImageViewer.CenterAtPoint Method to center the viewer to the center of the zoomed rectangle. Please try this and let me know if this worked with you.
About the RasterImageViewer members HorizontalAlignMode and VerticalAlignMode, they have been added in v15 of our toolkit.
#5
Posted
:
Wednesday, November 12, 2008 9:57:00 PM(UTC)
Groups: Registered
Posts: 12
hi Yasir,
How can i get the ZoomedRectangle after i set the ScaleFactor for the rasterImageViewer ?
i have tried this, but the result is not ok:
rasterImageViewer1.CenterAtPoint(new Point(e.X, e.Y));
Can u give me an example to Zoom the rasterimageviewer in the middle of the ZoomedRectangle ?
Thanks
Ingo
#6
Posted
:
Thursday, November 13, 2008 5:15:59 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Ingo,
If you want to get the currently displayed rectangle in image coordinates, convert the client rectangle of the viewer control to bitmap coordinates using the Leadtools.Helpers.Transformer class.
For more information about the transformation mechanism, refer to the "Transformer Class" topic in the .NET Class Library help file.
Please note that you are using very old build of our DLLs and I recommend that you update with the latest patch before going any further. To get the latest patch, please send an email to
support@leadtools.com and mention your serial number(s) in the email.
Do NOT post your serial number here.
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.