[LIBART] unfilled areas when drawing with transparency (alpha) ?
- From: "Drew Folta" <drew folta net>
- To: <libart gnome org>
- Subject: [LIBART] unfilled areas when drawing with transparency (alpha) ?
- Date: Fri, 30 May 2003 10:52:17 -0700 (PDT)
Hi,
I just ran into an interesting behaviour of libart where certain types of
areas aren't filled in when using any amount of transparency (alpha level
other than 0xFF). The situation happens when I give the vertices of an
area in a clockwise order. Compare these two images:
http://www.folta.net/drew/fill_EE.png
http://www.folta.net/drew/fill_FF.png
They're both drawn exactly the same, with only the alpha level different.
The fully-opaque box gets filled, but the partially-transparent one does
not.
Soo... my question is: is this the correct behavior of libart, or should
it be filling the box with the appropriate transparent color?
A self-contained program to demonstrate this (and generate the above
images) is at http://www.folta.net/drew/fill.c.
(Hmmm... maybe a better example would be the following to images, which
draw the points in a slightly different order:
http://www.folta.net/drew/fill_x_88.png
http://www.folta.net/drew/fill_x_FF.png
)
This is with libart 2.3.11.
Drew Folta
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]