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 : Tuesday, July 31, 2012 12:07:45 AM(UTC)
bnvelarde

Groups: Registered
Posts: 34


How can I create an image resize setup like the one in the photo where when you adjust the width, the others (height, document width and height) will also be adjusted automatically?
 

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, July 31, 2012 2:26:22 AM(UTC)
bnvelarde

Groups: Registered
Posts: 34


like this ?
bnvelarde attached the following image(s):
resize.JPG
 
#3 Posted : Tuesday, July 31, 2012 5:38:32 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


This is not a LEAD feature as much as it is a general programming question. The idea is to implement event handles for all the text boxes so that when one of them is modified by the user while the 'Proportions' (sometimes called Aspect Ratio) checkbox is enabled, the other fields are updated as needed.

As for the relation between physical (Document) size and pixel size it is basically:
Size in Pixels = Size in inches * DPI
If you're using units other than inch, such as cm, you will need to factor that too. For example:
Size in cm = size in inches * 2.54.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#4 Posted : Tuesday, July 31, 2012 9:24:10 PM(UTC)
bnvelarde

Groups: Registered
Posts: 34


Mohammed

Can you please point me to an example of your resize image with the nearest or same function to my requirement?

I have been referring in your RasterizeDocumentDemo, to load the image's width, height, document width and height, pixel, inches and mm but i always get lost for there are a lots of connections.

Thank you very much for the reply.
 
#5 Posted : Wednesday, August 1, 2012 5:38:51 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


The RasterizeDocumentDemo is not meant for simple image resizing. The easiest thing to do after you calculate the needed target image size is to use our resizing functions directly such as L_SizeBitmap (if you're using C DLL) or SizeCommand Class (if you're using .NET).
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
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-2019, Yet Another Forum.NET
This page was generated in 0.118 seconds.