Re: Creating an EPS file from an NSImage
Re: Creating an EPS file from an NSImage
- Subject: Re: Creating an EPS file from an NSImage
- From: Steve Sims <email@hidden>
- Date: Mon, 19 Jul 2004 13:31:43 -0400
On 19 Jul 2004, at 07:12, Michael Becker wrote:
Hi!
I would like to create a statistics graphic and then export that as an
EPS file. I would assume that I draw my statistics to an NSView or
NSImage using the common methods (NSRectFill and friends), and then
somehow convert that to EPS.
How would I go about that?
I have found the NSEPSImageRep class, but it seems to be only capable
of *reading* EPS files rather than creating/writing EPS files.
Hmmm... Not sure about getting EPS data from an NSImage.
However it's easy to get EPS from an NSView. Just look up NSView's
dataWithEPSInsideRect: call for more information. When you call this
everything that gets drawn in your drawRect routine gets put into an
EPS data object.
Steve
_______________________________________________
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.