Re: Overlaying an image with transparency?



On 2002.03.11 16:08 Ronald Kneusel wrote:
I have a drawing area with an image in it and want to overlay another
image.  The second image is binary, 1 means that pixel should be drawn
and 0 means that the pixel is to be transparent.

Is there a way to overlay this image without actually moving through it
and either drawing the pixel or not based on the value?  Can I make a
type of colormap with 2 colors only, one transparent?

What about using the GdkGC's clip mask?

You'd need a GdkBitmap as the clip mask, and a GdkPixmap
to draw ask masked by the GdkBitmap.


--
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]