LEADTOOLS Support
Imaging
Imaging SDK Questions
How to set destination rectangle use LAnnotationWindow?
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, April 6, 2011 1:01:42 AM(UTC)
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~
#2
Posted
:
Wednesday, April 6, 2011 4:48:16 AM(UTC)
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)
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)
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)
Groups: Registered
Posts: 3
It seen to be a hard work, anyway, I will try.
thank you very much~
LEADTOOLS Support
Imaging
Imaging SDK Questions
How to set destination rectangle use LAnnotationWindow?
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.