Draw an NSImage and then erase some parts with NSBezierPath
Draw an NSImage and then erase some parts with NSBezierPath
- Subject: Draw an NSImage and then erase some parts with NSBezierPath
- From: Michaƫl Villar <email@hidden>
- Date: Mon, 26 May 2008 23:17:18 +0200
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@hidden)
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:
This email sent to email@hidden