FROM : Michaël Villar
DATE : Mon May 26 23:17:18 2008
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 ;))
DATE : Mon May 26 23:17:18 2008
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 ;))
| Related mails | Author | Date |
|---|---|---|
| Michaël Villar | May 26, 23:17 | |
| Michaël Villar | May 26, 23:39 | |
| Adam Leonard | May 27, 00:27 | |
| Peter Burtis | May 27, 00:31 |






Cocoa mail archive

