It is finished.
I prefer this Solution, because of very good Quality-results.
All what You need is to include a few Lines of Code.
It is very easy and nothing to calculate.
With just a few Lines much more is possible like Sharpen, Contrast, Brightness, Rotate .....
The Image-previews are showing Alphablended BMP's with a black Background.
I will look for a transparent Solution.
The Download :
http://www.pflegeplus.com/fw_downloads/resize1.zipThe Tool is just for testing Resize-Results ( Quality )
Usage :
1. Copy NCONVERT.exe to Your Appl.-Maindirectory
2. include One of the 3 Sections
( replace Path and Image, You can use a different Output-name if You need )
// Resize given horizontal cIN_File :=
D:\P_RESIZE2\DOWNLOAD\IMAGES\PAGE.BMPcOUT_File :=
D:\P_RESIZE2\PAGE.BMPcScript := " -quiet -o " + cOUT_File + " -ratio -resize 50 0 -overwrite " + cIN_File
WAITRUN ( "NConvert " + cScript, 0 )
// Resize given vertical cIN_File := D:\P_RESIZE2\DOWNLOAD\IMAGES\PAGE.BMP
cOUT_File := D:\P_RESIZE2\PAGE.BMP
cScript := " -quiet -o " + cOUT_File + " -ratio -resize 0 80 -overwrite " + cIN_File
WAITRUN ( "NConvert " + cScript, 0 )
// Resize defined % cIN_File := D:\P_RESIZE2\DOWNLOAD\IMAGES\PAGE.BMP
cOUT_File := D:\P_RESIZE2\PAGE.BMP
cScript := " -quiet -o " + cOUT_File + " -ratio -resize 150% 0% -overwrite " + cIN_File
WAITRUN ( "NConvert " + cScript, 0 )
Using the Tool :1. Select a Image
2. define a Destination-Dir
3. Push the Button who belongs to the Resize-mode
4. Select a Resize-mode
5. Use Button Show result
( the used Script is created )
Here is a BMP-test :
A BMP 24x24 resized to 80x80 ( nothing to calculate to keep the Ratio )
3 different Resize-modes are possible : Width, Height and %
Best Regards
Uwe