FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour A problem with GDIP_IMAGEFROMFILE() [Solved]
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
A problem with GDIP_IMAGEFROMFILE() [Solved]
Posted: Fri Feb 28, 2020 08: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 (fw): Select all Collapse
hImg = GDIP_IMAGEFROMFILE( cFile, .T., .T. )


If I replace it with

Code (fw): Select all Collapse
hImg = PALBMPREAD( , cFile )


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

Any ideas?

EMG
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: A problem with GDIP_IMAGEFROMFILE()
Posted: 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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: A problem with GDIP_IMAGEFROMFILE()
Posted: Sat Feb 29, 2020 03:50 PM
Solved adding

Code (fw): Select all Collapse
REQUEST GDIBMP


EMG

Continue the discussion