VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 12345678910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 17:42:18 08/19/05 Fri
Author: Mark Forte
Subject: Zoom/Unzoom on a point

Hi,

The company I work for purchased several ImageLib developer licenses, and I currently use the TImageScrollBox to simply display images (JPG and TIFF).

I have buttons next to the image to zoom and unzoom. Basically, these buttons simply multiply or divide the ZoomPercent by 1.5. However, if the user zooms, then uses the mouse to move the image such that they are centered on some specific part of the image, then they zoom in some more, the TImageScrollBox no longer is centered on that specific part of the image. Rather, it displays the top left of the image.

I enhanced the component by adding a few lines of code to RedrawBW/RedrawNotBW such that it remains centered on the specific part of the image when zooming/unzooming. If desired, I can send you the code so you can review it, and possibly include it in a future release? If so, let me know the email address to send the source code to.

Thanks,
Mark Forte
email: mforte at the domain below
Hansen Quality / Fidelity
hanqual dot com

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:


Post a message:
This forum requires an account to post.
[ Create Account ]
[ Login ]
[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.