Page 1 of 1

Bitmap from a variable

PostPosted: Thu Oct 13, 2022 2:18 pm
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

Re: Bitmap from a variable

PostPosted: Thu Oct 13, 2022 8:52 pm
by nageswaragunupudi
oImage:SetSource( ... )

Re: Bitmap from a variable

PostPosted: Fri Oct 14, 2022 8:15 am
by Natter
Thank you Rao ! Everything is fine with TXImage

Re: Bitmap from a variable

PostPosted: Fri Oct 14, 2022 9:36 am
by Natter
Bitmap looks good in TXImage. I save it using the method :Save(). However, the Bitmap saved to the file looks much worse

Re: Bitmap from a variable

PostPosted: Fri Oct 14, 2022 7:30 pm
by Antonio Linares
Dear Natter,

CLASS TXImage METHOD Save( lAsViewed, cFile, nQuality )

what nQuality parameter value are you using ?

Please try with 100