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 : Wednesday, April 6, 2011 1:01:42 AM(UTC)

koizumi  
koizumi

Groups: Registered
Posts: 3


Hi.

I'm using Leadtools V16 c++ class library

Do you have any example to pan the image exceed the LAnnotationWindow?

because I found in help file:

"LBitmapBase::SetDstRect" ...

This function is not working while being called from the classes LBitmapWindow, LAnimationWindow, or LAnnotationWindow.


thank you~

 

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, April 6, 2011 4:48:16 AM(UTC)

Javed  
Javed

Groups: Registered
Posts: 11


You can use the built-in mouse tools for panning. You can se the tool by calling LBitmapWindow::SetToolType and passing “TOOL_PANIMAGE” for uToolType argument.
You can also use the LBitmapWindow::ScrollBy and LBitmapWindow::ScrollTo methods to pan/scroll image in LBitmapWindow.
 
#3 Posted : Tuesday, April 12, 2011 1:21:54 AM(UTC)

koizumi  
koizumi

Groups: Registered
Posts: 3


Thanks for reply,

I have try that already, but I still can't find a way to pan the image exceed the window when the image is smaller than the LBitmapWindow.

I used to do that before by LEAD 13 VCL component, ...any suggestion?

 
#4 Posted : Tuesday, April 12, 2011 11:08:02 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

If you want low-level control beyond what LBitmapWindow and its children (like LAnnotationWindow) can provide, you can use the LBitmap class (which supports SetDstRect) and implement your own code for painting using LBitmap.Paint()->PaintDC().
If you do that, you can still use annotations, but you will have to create the annotation container and automation objects yourself.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#5 Posted : Monday, April 18, 2011 9:19:54 PM(UTC)

koizumi  
koizumi

Groups: Registered
Posts: 3


It seen to be a hard work, anyway, I will try.

thank you very much~
 
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.056 seconds.