This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, July 31, 2012 12:02:45 AM(UTC)
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?
#2
Posted
:
Tuesday, July 31, 2012 2:21:22 AM(UTC)
Groups: Registered
Posts: 34
like this ?
bnvelarde attached the following image(s):
#3
Posted
:
Tuesday, July 31, 2012 5:33:32 AM(UTC)
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.
#4
Posted
:
Tuesday, July 31, 2012 9:19:10 PM(UTC)
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:33:51 AM(UTC)
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.
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.