Bitmap from a variable

Bitmap from a variable

Postby Natter » Thu Oct 13, 2022 2: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
Natter
 
Posts: 1134
Joined: Mon May 14, 2007 9:49 am

Re: Bitmap from a variable

Postby nageswaragunupudi » Thu Oct 13, 2022 8:52 pm

oImage:SetSource( ... )
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10308
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Bitmap from a variable

Postby Natter » Fri Oct 14, 2022 8:15 am

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

Re: Bitmap from a variable

Postby Natter » Fri Oct 14, 2022 9:36 am

Bitmap looks good in TXImage. I save it using the method :Save(). However, the Bitmap saved to the file looks much worse
Natter
 
Posts: 1134
Joined: Mon May 14, 2007 9:49 am

Re: Bitmap from a variable

Postby Antonio Linares » Fri Oct 14, 2022 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41406
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Boby6Muertos, Jimmy, karinha, Otto and 45 guests