Page 1 of 1

FW_BarCodeBmp Help

Posted: Fri Dec 13, 2019 4:10 pm
by audisys
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

Re: FW_BarCodeBmp Help

Posted: Sun Dec 15, 2019 10:54 am
by nageswaragunupudi
Please try converting the bitmap as alpha bitmap with this function.

Code: Select all

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