Anthony Walter wrote:
How can I stretch draw an area of a gdk pixbuf to a cairo surface with a
user defined opacity?

I am trying to write a cross platform interface for working with bitmaps
and want to add alpha blending to my cairo stretch draw method. What I
have right now works just fine, but I am unable to think up a way of to
mold alpha blending into a series of cairo/gdk apis which work somewhat
like Microsoft's [AlphaBlend][1] function.


IIRC When implementing Alphablend for the LCL, I've written an AlphaBlend replacement for win9x winNT and WinCE.
It's somewhere in the windows interface sources.

This routine simply blends buffers of rgba pixels

Marc



--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to