Page 1 of 1

A problem with GDIP_IMAGEFROMFILE() [Solved]

Posted: Fri Feb 28, 2020 8:38 pm
by Enrico Maria Giordano
Dear friends, I have a problem with the funcion GDIP_IMAGEFROMFILE(): normally it works fine but in one of my source code it just quit the program without messages or log files. I'm using it in this way:

Code: Select all

hImg = GDIP_IMAGEFROMFILE( cFile, .T., .T. )
If I replace it with

Code: Select all

hImg = PALBMPREAD( , cFile )
it works fine (only with BMP, of course).

Any ideas?

EMG

Re: A problem with GDIP_IMAGEFROMFILE()

Posted: Sat Feb 29, 2020 12:02 am
by nageswaragunupudi
We recommend using FW_ReadImage( nil, cAnyImageSource, [aSize], [lGDIP] ) --> aImage

Elements of aImage:
{ hBitmap, hPalette, nBmpWidth, nBmpHeight, lAlpha, cName, lResource, cType, nZeroClr }

Destroy with
PalBmpFree( aImage )

Re: A problem with GDIP_IMAGEFROMFILE()

Posted: Sat Feb 29, 2020 3:50 pm
by Enrico Maria Giordano
Solved adding

Code: Select all

REQUEST GDIBMP
EMG