Skip to content
Prev 28962 / 63421 Next

Macintosh Transperancy (PR#11511)

Simon,
On May 24, 2008, at 10:28 PM, Simon Urbanek wrote:

            
While I agree that it should look that way if you draw it as you  
describe, I don't think you're describing the drawing process the way  
people expect.  I don't think FILL means that you draw the shape/fill  
first, then draw the perimeter (which is what you describe).  I think  
it means that you draw the perimeter first, and then fill-in  
everything that's inside the perimeter.  From my experience, that's  
the way all the drawing programs I've used work.
	If a user were to draw the point themselves, they would draw the  
perimeter, then use a fill tool to fill what's inside the perimeter.   
They would NOT draw a filled-shape, and then draw the empty-shape.
	I also think that the users shouldn't need to be familiar with the  
complexities of drawing each point with different strokes.  Perhaps  
the best way to do this would be to have a separate alpha-parameter  
for the point itself.  This would hide the complexities of drawing the  
point, and allow the users to use regular colors (without alpha- 
extensions) for their points.  I think that most times users want  
transparency, they want the point that was drawn without transparency  
to have transparency, and not to have to think about the transparency  
of individual strokes/etc...
Look at the next line - I used the Linux version to print out to  
PDF...   You are correct that X11 didn't/doesn't have alpha support,  
but a PDF device has had alpha-support for quite a while.
In further debug today, I actually found out that what you see depends  
on the PDF-viewer you use.  Since I used acroread at work/linux, and  
preview at home/mac, I assumed the files they created were different.   
Actually, it looks like they are the same, but what they look like is  
different.  I verified this by downloading Adobe Reader for my mac  
(latest version), and comparing it to what is shown in Preview.   I  
then took snap-shots of the entire windows to a PNG, so that you can  
see how they draw them differently.  This may actually need to ticket  
to go to Apple.  But as you can see from these snapshots, I think that  
how Adobe (PDF-spec-creator) shows the plot is correct (First is Adobe  
Reader, 2nd is Preview).  On my work-Linux box, acroread shows the  
same as Adobe Reader on my mac.  My guess is that Adobe uses FILL to  
mean fill-inside-the-perimeter-shape, the way I described above, and  
Preview uses it to mean fill-inside-the-shape-then-draw-the-perimeter  
that you're advocating.  Myself, I think that adobe is correct...




	Here's 3-points at the top, zoomed in (Adobe first, Preview 2nd).   
Personally, I find that the first looks much cleaner / less noisy than  
the second.  Maybe it's just because that's what I expect...
Again, I think it is a bug, though the root of the bug may actually be  
in Apple's QUARTZ code.  One major reason I think it's a bug is that  
for the way R currently draws it, there is NO-WAY for R to create the  
plot that Adobe Reader shows in Quartz.  However, if R draws it the  
way I think is right, then R can create both plots, as the way it  
currently draws it can be emulated by plotting each point twice (once  
for fill-only, and once for perimeter-only)...
	In short the bug is this...  I cannot make 2-color-points (perimeter/ 
fill), and make a point that looks exactly like it, but is  
transparent...