timage

Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

timage

Post 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
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Timage with different Picture-Formats

Post 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
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

Post by Peterg »

Tried putting freeimage.dll in the working directory and also in windows/system32 folder but no joy. Still only works for bmp
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Peter,

Whats the size of your FreeImage.dll ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

Post by Peterg »

Antonio
1032kb
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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,
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Peter,

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

Antonio Linares
www.fivetechsoft.com
Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

Post by Peterg »

Just compiled testimg using feb xharbour and it does not display the jpg file.
Any idea on what I am doing wrong
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Peter,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

Post by Peterg »

tried with 8.03 but still no good. Will wait for next release of xharbour
Thanks
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Peter,

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

Antonio Linares
www.fivetechsoft.com
Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

Post 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
Peterg
Posts: 62
Joined: Mon Nov 28, 2005 5:36 pm
Location: Oxford UK
Contact:

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Peter,

What compile errors do you get ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply