FW_BarCodeBmp Help

FW_BarCodeBmp Help

Postby audisys » Fri Dec 13, 2019 4:10 pm

Hi Mr. Nage,
I am generating a QR code with FW_BarCodeBmp, but when recording it saves me the image with a black background.
How to save with transparent background

Image
José David Angulo
Auditoria y Sitemas Ltda.
Cartagena Colombia
audisys
 
Posts: 49
Joined: Wed Apr 18, 2007 6:01 pm
Location: Cartagena - Colombia

Re: FW_BarCodeBmp Help

Postby nageswaragunupudi » Sun Dec 15, 2019 10:54 am

Please try converting the bitmap as alpha bitmap with this function.
Code: Select all  Expand view
function bmp2alpha( hBmp1 )

   local hBmp, oBmp

   oBmp  := GdiBmp():New()
   oBmp:CreateFromRes( hBmp1, 0 )
   oBmp:Conver24to32Alpha( .f. )
   hBmp  := oBmp:GetGDIHbitmap()
   oBmp:Destroy()
   DeleteObject( hBmp1 )

return hBmp
 
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 95 guests