Re: How to change color in a pixmap?



Alexei Kaminski <kaminski tpi umn edu> writes: 
Browsing the documentation, I was able to figure out a couple of awkward
ways,
but is there an elegant way? I would like to avoid using the actual size
of the
pixmap in this procedure, since I have buttons (and pixmaps) of
different
sizes.


Since your images are one-color, I'd suggest discarding the pixmap and
just using its mask as the clip mask to draw a colored rectangle.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]