[Gambas-devel] QT component / Bug

Daniel Campos danielcampos at ...45...
Mon May 31 12:56:43 CEST 2004


This is a Bug (I think):

When Copying a Picture in another picture, transparency (alpha)
information is lost. Try the first example (with an icon called
'execution.png' in the project, having alpha):

PUBLIC SUB Button1_Click()
  DIM Pepe AS NEW Picture

  Pepe.Load("execution.png")
  ME.Icon=Pepe
  
END


You will see that the form icon has a transparent icon. 

Now try this: 

PUBLIC SUB Button1_Click()
  DIM Pepe AS NEW Picture
  DIM Jose AS Picture 
  
  Pepe.Load("execution.png")
  Jose=pepe.Copy()
  ME.Icon=Jose
  
END

The new icon is not transparent!

Regards,


(Icon taken from 'Genecode')

-- 
Daniel Campos <danielcampos at ...45...>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: execution.png
Type: image/png
Size: 1468 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20040531/23b6aa8e/attachment.png>


More information about the Devel mailing list