Hi Guys,
What is the best way to load an image (JPG file), resize and save it ?
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 view
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.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 55 guests