Skip navigation.
 
mlRe: Draw an NSImage and then erase some parts with NSBezierPath
FROM : Michaël Villar
DATE : Mon May 26 23:39:51 2008

Look at my code. I use it, but it doesn't work.
It seems that NSBezierPath draw "transparent" color, not "clear the 
color".

Le 26 mai 08 à 23:28, Scott Anguish a écrit :

> what about clearColor?
>
>
> On May 26, 2008, at 5:17 PM, Michaël Villar wrote:
>

>> Hi,
>>
>> What i want is to clear an NSImage (not entirely) with some 
>> NSBezierPath.
>> Here is my actual code :
>>
>> [_image drawAtPoint:NSMakePoint(0, 0) fromRect:NSZeroRect 
>> operation:NSCompositeCopy fraction:1.0];
>>
>> NSBezierPath * path;
>> path = [NSBezierPath bezierPath];
>> [path appendBezierPathWithArcWithCenter:NSMakePoint(0,0) radius:8 
>> startAngle:0 endAngle:360];
>> [[NSColor clearColor] set];
>> [path fill];
>>
>>
>> (If i use NSColor whiteColor, a white circle is drawed ;))
>> _______________________________________________
>>
>> Cocoa-dev mailing list (<email_removed>)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>>
>> This email sent to <email_removed>

>

Related mailsAuthorDate
mlDraw an NSImage and then erase some parts with NSBezierPath Michaël Villar May 26, 23:17
mlRe: Draw an NSImage and then erase some parts with NSBezierPath Michaël Villar May 26, 23:39
mlRe: Draw an NSImage and then erase some parts with NSBezierPath Adam Leonard May 27, 00:27
mlRe: Draw an NSImage and then erase some parts with NSBezierPath Peter Burtis May 27, 00:31