Re: Tracing an outline in libart



On Fri, 4 Feb 2000, John R. Sheets wrote:

> Hi,
> 
> I'm trying to figure out what's involved with putting a "halo", or even
> a simple outline around an alpha-masked pixbuf.  The background is that
> I'm writing a Canvas Item to highlight graphical images (for a game)
> when they're selected.  If I have to, I'll stick with the clunky-looking
> selection rectangle I currently have working.  However, I'd much prefer
> something a little more professional-looking.
> 
> So, given an arbitrarily-shaped pixbuf, how can I trace an outline based
> on its alpha mask?  Does libart have any path functions for this?

the gnome forest i announced here some while ago, contains a libart
fucntion that does exactly this, it computes an outline pixel path
based on a given alpha threshold.

ftp://gtk.org/pub/users/timj/gnome-forest-0.2.0.tar.gz

---
ciaoTJ



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