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 : Friday, November 7, 2008 1:53:44 AM(UTC)

ingo  
ingo

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
 

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 : Sunday, November 9, 2008 6:21:17 AM(UTC)

Yasir Alani  
Guest

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)

ingo  
ingo

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)

Yasir Alani  
Guest

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)

ingo  
ingo

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)

Yasir Alani  
Guest

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.

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