Re: Question on gdk-pixbuf



Nathan Hurst <njh@hawthorn.csse.monash.edu.au> writes: 
> > One thing: does gdk-pixbuf support grayscale? Or do you just mean all
> > your RGB pixels have R == G == B?
> 
> I suspect the obvious interpretation of taking one pictures rgbs and
> other's alpha is what is intended.
>

That's not what I'm asking: "grayscale" typically doesn't mean RGB at all.
 
> > Basically you want to make a copy of pixbuf A, then iterate over the
> > pixels of C and modify the alpha of the copy of A according to the
> > intensity of the pixels in C, then composite the modified-alpha
> > version of A onto B. If you want a separate pixbuf D, then copy B
> > first to create D, then composite A onto D instead of onto B.
> 
> Yuck.  Gnome-font is going to be very slow then.
> 

Implementing gnome-font this way would be pretty stupid. The above is
just a simple way to do this using existing gdk-pixbuf features.

Havoc





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