This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, June 20, 2007 3:44:38 PM(UTC)
Groups: Registered
Posts: 5
I have an application that I wrote using the ActiveX control. I've now been tasked with rewriting it using the class libraries (security issues prevent us from installing ActiveX on the target machines).
In the existing application I use the destination rectangles to control the visible portion of the image but I can't seem to find equivalent calls in the class libraries. In fact, the documentation says SetDstRect() does not work when called from LBitmapWindow or LAnnotationWindow.
Are any examples available that show how to use the destination rectangles and class library to control the visible image? I've searched the forum and examples and found nothing.
Thanks,
Ken
#2
Posted
:
Wednesday, June 20, 2007 9:44:38 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
I checked the C++ class Library documentation and found the following:
"The LEADTOOLS functions for painting an image use four rectangles. Two of them, the source rectangle and the destination rectangle, determine how much an image is scaled (zoomed) when it is displayed. The other two, the source clipping rectangle and the destination clipping rectangle, determine which part of an image is painted. For a complete description of the rectangles, with illustrations, refer to the LPaint::PaintDC function."
You can use the LBitmapWindow with the LPaint::PaintDC function. For more information and a sample code, please read the following topics in the LEADTOOLS C++ Class Library documentation:
- LPaint::PaintDC
- Setting Rectangles
- Displaying an Image
Also, please read the following forums:
http://support.leadtools.com/SupportPortal/cs/forums/12488/ShowPost.aspx
http://support.leadtools.com/SupportPortal/cs/forums/3575/ShowPost.aspx
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Thursday, June 21, 2007 11:49:59 AM(UTC)
Groups: Registered
Posts: 5
Thanks Maen
Hopefully these will give me what I need. It's certainly not as easy as using the ActiveX control
Ken
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.