[Qt-interest] QPixmap and transparency map generation

Francisco Ares frares at gmail.com
Mon Oct 5 04:40:49 CEST 2009


Hi

I have a QImage that I want to show as a QPixmap in a label.  That I already
know how to do.

But I still want to create a transparency mask for it.

The QImage has no alpha channel. I have some points, just X,Y coordinates,
but it is possible to transform them in a QPolygon or QPainterPath, and I
already know how to do this.

What I don't know is how to gather all this information to create a QPixmap
with a transparent region determined by those points. Is there a best
approach? Are there many?

Thanks a lot!
Francisco

-- 
"If you have an apple and I have an apple and we exchange apples then you
and I will still each have one apple. But if you have an idea and I have one
idea and we exchange these ideas, then each of us will have two ideas." -
George Bernard Shaw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091004/e154c742/attachment.html 


More information about the Qt-interest-old mailing list