• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating an EPS file from an NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Creating an EPS file from an NSImage (From: Michael Becker <email@hidden>)

  • Prev by Date: Re: Nil-terminated object list?
  • Next by Date: Re: Obj-C header-file becoming C header-file, & NSImage problem
  • Previous by thread: Creating an EPS file from an NSImage
  • Next by thread: Ink Services
  • Index(es):
    • Date
    • Thread