Filling canvas objects



Hello

I'm trying to create canvas item class, which can be filled by user
defined function - i.e. it allows gradient fills, fractals etc.
Just cannot figure out, if there is some nice way to render it
using libart. Seems, that svp renderer accept only solid colors and
there is not simple way to clip pixbuf/raw buffer using svp paths.

The best way I could figure out was:
  1. Create empty RGB buffer
  2. Create RGBA buffer
  2. Render SVP into RGB buffer
  3. Translate RGB buffer to RGBA buffer, using fill function & making
     background transparent
  4. Render RGBA buffer to canvas buffer

Have I overlooked something?

Lauris




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