A problem with GDIP_IMAGEFROMFILE() [Solved]

A problem with GDIP_IMAGEFROMFILE() [Solved]

Postby Enrico Maria Giordano » Fri Feb 28, 2020 8:38 pm

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 view
hImg = GDIP_IMAGEFROMFILE( cFile, .T., .T. )


If I replace it with

Code: Select all  Expand view
hImg = PALBMPREAD( , cFile )


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

Any ideas?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: A problem with GDIP_IMAGEFROMFILE()

Postby nageswaragunupudi » Sat Feb 29, 2020 12:02 am

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



Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests