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 : Monday, April 20, 2009 6:26:09 AM(UTC)

johnsz  
johnsz

Groups: Registered
Posts: 9


I load an image and set a PaintSizeMode=smFit
How to detect PaintZoomFactor for this ?
VCL, v14.5.0.82
 

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 : Tuesday, April 21, 2009 3:31:08 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

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

You can calculate the Zoom Ratio in any mode (Fit, zoom, normal, etc.) by dividing the TLEADImage.DstWidth by TLEADImage.SrcWidth.

The result is a fractional number where 1.0 means 100% zoom, 0.5 means 50% and so on.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
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.038 seconds.