FW_BarCodeBmp Help

Post Reply
audisys
Posts: 36
Joined: Wed Apr 18, 2007 6:01 pm
Location: Cartagena - Colombia

FW_BarCodeBmp Help

Post 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
José David Angulo
Auditoria y Sitemas Ltda.
Cartagena Colombia
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: FW_BarCodeBmp Help

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

G. N. Rao.
Hyderabad, India
Post Reply