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 RUN
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: No registered users and 58 guests