FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bitmap from a variable
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Bitmap from a variable
Posted: Thu Oct 13, 2022 02:18 PM

Hi,

I was counting a recordset from the MariaDB database. From this recordset, I load the bitmap into the TImage control using the method :LoadFromMemory(). Everything works fine. However, the downloaded bitmap looks bad. I don't know what the reason is, but the bitmap downloaded from the file looks good.
I wanted to try using TXImage, but I don't know how to load a bitmap from a variable into it

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Bitmap from a variable
Posted: Thu Oct 13, 2022 08:52 PM

oImage:SetSource( ... )

Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Bitmap from a variable
Posted: Fri Oct 14, 2022 08:15 AM

Thank you Rao ! Everything is fine with TXImage

Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Bitmap from a variable
Posted: Fri Oct 14, 2022 09:36 AM

Bitmap looks good in TXImage. I save it using the method :Save(). However, the Bitmap saved to the file looks much worse

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bitmap from a variable
Posted: Fri Oct 14, 2022 07:30 PM

Dear Natter,

CLASS TXImage METHOD Save( lAsViewed, cFile, nQuality )

what nQuality parameter value are you using ?

Please try with 100

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion