[Top][All Lists]

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

[bug #27927] NSColor setFill not well supported and setStroke broken

From: Quentin Mathé
Subject: [bug #27927] NSColor setFill not well supported and setStroke broken
Date: Wed, 04 Nov 2009 14:42:04 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6; fr-fr) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9

Follow-up Comment #2, bug #27927 (project gnustep):

Hi Fred,

-setStroke: works now and I don't get any error logged as previously with
-setStroke: and -setFill:. This is great.
However there is still a problem with both methods (I tested both art and
cairo backends). They ignore the color alpha component unlike -set.

The code below works as expected:
[[[NSColor redColor] colorWithAlphaComponent: 0.5] set]; 
[NSBezierPath fillRect: aRect]; 

But with -setFill: (or -setStroke) as below, the alpha component is ignored,
and the filled rect is just opaque red:
[[[NSColor redColor] colorWithAlphaComponent: 0.5] setFill]; 
[NSBezierPath fillRect: aRect]; 


Reply to this item at:


  Message posté via/par Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]