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, June 20, 2007 3:49:38 PM(UTC)
kmoore1213

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
 

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, June 20, 2007 9:49:38 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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:54:59 AM(UTC)
kmoore1213

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.

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