A problem with GDIP_IMAGEFROMFILE() [Solved]

Post Reply
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
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 | Expand

hImg = GDIP_IMAGEFROMFILE( cFile, .T., .T. )


If I replace it with

Code: Select all | Expand

hImg = PALBMPREAD( , cFile )


it works fine (only with BMP, of course).

Any ideas?

EMG
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
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