FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Limitation on TImage / FreeImage ?
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Limitation on TImage / FreeImage ?
Posted: Mon Feb 19, 2007 11:47 AM
Hello,

I have a problem when I load more than 2/3 jpg in the same dialog. Anybody solved it ? Example for test:



#include "FiveWin.ch" 
#include "Image.ch" 

//---------------------------------------------------------------------------- 

function Main() 

   LOCAL oDlg, oImage1, oImage2, oImage3, oImage4, oImage5, oImage6 
   LOCAL cFile := cGetFile( curdrive() + ':\' + CurDir() + '\*.jpg' ) 

   DEFINE DIALOG oDlg FROM 0, 0 TO 39, 50 ; 
      TITLE FWDESCRIPTION + " JPG,JIF,GIF,BMP,DIB,RLE,TGA,PCX support!" 

     @ 0 ,  0  IMAGE oImage1 FILE cFile SIZE 100, 100 OF oDlg ADJUST 
     @ 7 ,  0  IMAGE oImage2 FILE cFile SIZE 100, 100 OF oDlg ADJUST 
     @ 14,  0  IMAGE oImage3 FILE cFile SIZE 100, 100 OF oDlg ADJUST 
     @ 0 , 12  IMAGE oImage4 FILE cFile SIZE 100, 100 OF oDlg ADJUST 
     @ 7 , 12  IMAGE oImage5 FILE cFile SIZE 100, 100 OF oDlg ADJUST 
     @ 14, 12  IMAGE oImage6 FILE cFile SIZE 100, 100 OF oDlg ADJUST 


     oDlg:bStart := MsgInfo( 'oImage1:hBitmap ' + str( oImage1:hBitmap ) + CRLF + ; 
                             'oImage2:hBitmap ' + str( oImage2:hBitmap ) + CRLF + ; 
                             'oImage3:hBitmap ' + str( oImage3:hBitmap ) + CRLF + ; 
                             'oImage4:hBitmap ' + str( oImage4:hBitmap ) + CRLF + ; 
                             'oImage5:hBitmap ' + str( oImage5:hBitmap ) + CRLF + ; 
                             'oImage6:hBitmap ' + str( oImage6:hBitmap ) ) 

   ACTIVATE DIALOG oDlg CENTER ; 


return nil


Thanks.
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Limitation on TImage / FreeImage ?
Posted: Mon Feb 19, 2007 04:41 PM

I just tried your sample and found no problem at all.

EMG

Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Limitation on TImage / FreeImage ?
Posted: Mon Feb 19, 2007 05:03 PM

Enrico,

Thanks for your test. I don't now that happen me. I wil try in other machines.

Thanks

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Limitation on TImage / FreeImage ?
Posted: Mon Feb 19, 2007 05:21 PM

Check also if you are using a recent FreeImage.dll release (I'm using 391 that is not the latest).

EMG

Posts: 840
Joined: Thu Oct 13, 2005 07:05 PM
Limitation on TImage / FreeImage ?
Posted: Mon Feb 19, 2007 05:40 PM

Carles:

Con la Image basada en la NIVEWLIB DLL (nativa de FiveWin) nosotros teniamos el problema de la velocidad de carga de las imagenes, era demasiado lenta.

Nos movimos a FREEIMAGE de EMG y ahora el programa funciona muy rapido en la carga de las imagenes.

Saludos

R.F.
Posts: 234
Joined: Tue Oct 25, 2005 12:39 AM
ÂżDnde?
Posted: Tue Feb 20, 2007 05:00 AM

Rene,
¿Y donde está esa freeimage de EMG?

Gracias

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: ÂżDnde?
Posted: Tue Feb 20, 2007 07:52 AM

If you are using TImage class (or IMAGE command) then probably you already have it.

EMG

Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Limitation on TImage / FreeImage ?
Posted: Wed Feb 21, 2007 01:31 PM

Hello,

I already have it resolved. It is that it controlled that ::hBitmap was > 0 and in fact it can be a negative value.

Regards.

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Limitation on TImage / FreeImage ?
Posted: Wed Feb 21, 2007 01:36 PM

Ah, ok.

EMG

Posts: 234
Joined: Tue Oct 25, 2005 12:39 AM
en efecto
Posted: Wed Apr 11, 2007 03:59 AM

Carles,
He estado recibiendo reportes de mis usuarios que hay veces que las imagenes no se cargan, no se ven. El ::hBitmap regresa un nĂşmero positivo o negativo.
Por favor podrĂ­as explicarme como lo has solucionado.

if oImage:hBitmap == 0
?"No se cargo la imagen"
// ¿Qué se puede hacer?
endif

Gracias

Fernando
México

Continue the discussion