Filling canvas objects
- From: Lauris Kaplinski <lauris ariman ee>
- To: gnome-list gnome org
- cc: raph acm org
- Subject: Filling canvas objects
- Date: Sat, 7 Aug 1999 02:05:50 +0300 (EEST)
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]