Bitmap from a variable

Post Reply
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Bitmap from a variable

Post by Natter »

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
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: Bitmap from a variable

Post by nageswaragunupudi »

oImage:SetSource( ... )
Regards

G. N. Rao.
Hyderabad, India
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Re: Bitmap from a variable

Post by Natter »

Thank you Rao ! Everything is fine with TXImage
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Re: Bitmap from a variable

Post by Natter »

Bitmap looks good in TXImage. I save it using the method :Save(). However, the Bitmap saved to the file looks much worse
User avatar
Antonio Linares
Site Admin
Posts: 42597
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 40 times
Been thanked: 86 times
Contact:

Re: Bitmap from a variable

Post by Antonio Linares »

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
Post Reply