Page 1 of 3

timage

Posted: Wed Apr 23, 2008 8:15 am
by Peterg
I have a problem using the timage class.
I can load a bmp file but if I try to load a jpg file the loadimage takes minutes and then does not display.

Any ideas

Peter

Timage with different Picture-Formats

Posted: Wed Apr 23, 2008 8:39 am
by ukoenig
Hello,

when you use different graphic-formats,
FREEIMAGE.dll has to be included in your working-directory.
I using JPG's as a background on a slow computer
and it is very fast.

Regards

Uwe

Posted: Wed Apr 23, 2008 9:08 am
by Peterg
Tried putting freeimage.dll in the working directory and also in windows/system32 folder but no joy. Still only works for bmp

Posted: Wed Apr 23, 2008 10:50 am
by Antonio Linares
Peter,

Whats the size of your FreeImage.dll ?

Posted: Wed Apr 23, 2008 10:55 am
by Peterg
Antonio
1032kb

Posted: Wed Apr 23, 2008 10:57 am
by Antonio Linares
Peter,

Ours is 1.056.768 bytes. It seems to be the same.

Could you please email me one of the JPGs files that you are testing ? Thanks,

Posted: Wed Apr 23, 2008 11:13 am
by Antonio Linares
Peter,

We have used fwh\samples\TestImg.prg to open and visualize your sent JPG and works fine :-)

Posted: Wed Apr 23, 2008 11:20 am
by Peterg
Just compiled testimg using feb xharbour and it does not display the jpg file.
Any idea on what I am doing wrong

Posted: Wed Apr 23, 2008 11:22 am
by Antonio Linares
Peter,

Please email me your TestImg.exe as a ZIP file, thanks

Posted: Wed Apr 23, 2008 11:49 am
by Antonio Linares
Peter,

Your EXE is not working here :-(

Anyhow, we have just built samples\TestImg.prg using FWH 8.04 and latest xHarbour we provide, and it works fine :-)

Posted: Wed Apr 23, 2008 12:13 pm
by Peterg
tried with 8.03 but still no good. Will wait for next release of xharbour
Thanks

Posted: Wed Apr 23, 2008 12:50 pm
by Antonio Linares
Peter,

I email you my EXE, please try it there. Thanks,

Posted: Wed Apr 23, 2008 1:49 pm
by Peterg
Antonio
The program you sent works with my dll so it must be down to the build. I cannot use the 8.04 with the current build of xHarbour as this will not build. I will try with the Feb beta build and then wait until they release the fixes for this

Thanks
Peter

Posted: Wed Apr 23, 2008 2:05 pm
by Peterg
Antonio
Do I need any different five libs for the feb build of xharbour as I get errors on comile if i try

Posted: Wed Apr 23, 2008 9:21 pm
by Antonio Linares
Peter,

What compile errors do you get ?