- Code: Select all Expand view RUN
- local bmp1:="C:\pct1.bmp", bmp2:="C:\pct2.bmp"
local hBmp
local img:={FW_ReadImage( nil, bmp1 ), ; // [3],[4] are width and height
FW_ReadImage( nil, bmp2 )}
hBmp := FW_MakeYourBitmap( img[1,3]+10, img[1,4]+6, ;
{ |hDC, w, h| PaintOverlay( hDC, w, h, img) } )
PalBmpFree( img[1] )
PalBmpFree( img[2] )
FW_SaveImage( hBmp, pr1 ) // cSave can be bmp,jpg,png
When executing the function FW_SaveImage, I get an error:
Error description: Error BASE/1074 Argument error: <=
Args:
[ 1] = P 0x135B0000
[ 2] = N 32
Stack Calls
===========
Called from: .\source\classes\IMAGE.PRG => LOADFREEIMAGE( 505 )
Called from: .\source\classes\IMAGE.PRG => FREEIMAGEISLOADED( 519 )
Called from: .\source\function\IMGTXTIO.PRG => FW_SAVEIMAGE( 2347 )