Re: overlaying a pixmap over an RGB image



I've created an RGB image from a data file, but now I want to be able to
draw things on it which result from user interaction. How can I do this?
I tried overlaying a pixmap on top of the RGB image, but it just covers
it completely... apparently pixmaps arent transparent. :)  Any ideas?

Rok

When you draw the GdkPixmap over the GdkWindow (GdkWindow
because that's where you 'put' your GDB RGB buffer first)
and then use a GdkGC with a clip mask created from the
GdkPixmap's mask (the GdkBitmap).  This will make the
transparent parts of the GdkPixmap, transparent.



--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
..__                         ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/



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