Load, Resize and Save an Image
Posted: Fri Aug 27, 2021 11:27 am
Hi Guys,
What is the best way to load an image (JPG file), resize and save it ?
What is the best way to load an image (JPG file), resize and save it ?
www.FiveTechSoft.com
https://forums.fivetechsupport.com/~fivetec1/forums/
https://forums.fivetechsupport.com/~fivetec1/forums/viewtopic.php?t=40783
Code: Select all | Expand
aBmp := FW_ReadImage( nil, "c:\fwh\bitmaps\olga1.jpg", { 176, 225 } ) // Load resized image
FW_SaveImage( aBmp[ 1 ], "olgasmal.jpg", 100 )
PalBmpFree( aBmp )
nageswaragunupudi wrote:Code: Select all | Expand
aBmp := FW_ReadImage( nil, "c:\fwh\bitmaps\olga1.jpg", { 176, 225 } ) // Load resized image
FW_SaveImage( aBmp[ 1 ], "olgasmal.jpg", 100 )
PalBmpFree( aBmp )
Original size of olga1.jpg is 352x450 px. Loaded with size 176x225 and then saved.