Skip to content
Prev 28956 / 63424 Next

Macintosh Transperancy (PR#11511)

Bradley,
On May 24, 2008, at 9:07 PM, Bradley Vance wrote:

            
I think you're still missing the point - it is the fill. I suspect  
you're misunderstanding the effect of using semi-transparent strokes.  
Moreover I get *exactly* the same result using X11 (both Mac *and*  
Linux) as well as other devices (PDF etc.). If you see anything else  
then *that* is a bug.

A point is represented by a shape (path) which is filled and then  
drawn (line stroke). As I was trying to explain earlier the effect is  
that half of the line is in the filled area. Imagine a rectangle (0,0)- 
(1,1). When you fill it, you're filling strictly the area between 0  
and 1 (in both x and y). However, when you strike let's say the line  
(0,0)-(1,0) with the width 0.25, you are filling the area (0,-0.25)- 
(1,+0.25) which means that half the line is outside (y<0) the filled  
are and another half is inside (y>=0). Given the alpha-blending  
mechanics [target=alpha*color + (1-alpha)*old] it implies that if the  
fill color is different from the background color and the line is not  
opaque, you get different color outside and inside the rectangle. You  
can verify that this is true for all devices that support alpha  
blending. This is how it works and is supposed to be, that's not a bug.
Well, 2.6 didn't have alpha support in X11 AFAIR, so I have no idea  
what you are trying to compare there ...
Again, I think you are missing something - it behaves consistently on  
Linux and Mac in the latest release and it's not a bug.

Cheers,
Simon