[PyQt] How do I get a clean empty transparent image?

Grzegorz Adam Hankiewicz gradha at titanium.sabren.com
Mon Jan 19 15:01:35 GMT 2009


El 19/01/2009, a las 0:18, David Boddie escribió:

>> How can I clean the image leaving the image transparent?
>
> Use the QImage.fill() method, passing a transparent colour:
>
>  big = QImage(size, images[0].height(), QImage.Format_ARGB32)
>  big.fill(qRgba(0,0,0,0))


Nice. Thanks for the help.



More information about the PyQt mailing list