PDA

View Full Version : how to fill color to the png image file's Alpha channel



xiongxiongchuan
9th September 2013, 10:00
i am using QBrush filled with
Qt::TexturePattern to draw QGraphicsItem and i want to to fill color to the png image file's Alpha channel with custorm color at runtime.
and i want to know if there is other way to slove this problem without png format picture format/

anda_skoa
9th September 2013, 13:13
How does your drawing code look like?
Which kind of paint device are you drawing on?

Cheers,
_

xiongxiongchuan
10th September 2013, 11:20
i use the code like this

QBrush *brush=new QBrush(":/images/12.png");