NSBezierPath to NSImage?
NSBezierPath to NSImage?
- Subject: NSBezierPath to NSImage?
- From: Michael Briscoe <email@hidden>
- Date: Mon, 29 Apr 2002 20:45:36 -0700
Hello List!
This is probably a stupid question, but it's driving me nuts! Is there a
way to draw NSBezierPath's directly to an NSImage? I need this so that I
can render the NSBezierPath data as a bitmap, and use composite
operations in my NSView.
Here's an except of my code:
theImage = [[NSImage alloc] initWithSize:NSMakeSize(theSize, theSize)];
[theImage lockFocus];
[self drawShape]; // bezier path drawing routines
[theImage unlockFocus];
This doesn't seem to be working.
Thanks is advance!
Best Regards,
Michael Briscoe
SkyRocket Multimedia
http://www.digitalfireworks.com/SkyRocket/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.