A problem with GDIP_IMAGEFROMFILE() [Solved]

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

A problem with GDIP_IMAGEFROMFILE() [Solved]

Post 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
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: A problem with GDIP_IMAGEFROMFILE()

Post 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 )
Regards

G. N. Rao.
Hyderabad, India
Post Reply