• 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
How to display an EPS file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to display an EPS file?


  • Subject: How to display an EPS file?
  • From: Lorenzo <email@hidden>
  • Date: Tue, 26 Aug 2003 15:11:07 +0200

Hi,
whenever i try to display an EPS file in an NSImageView I get a box with the
sizes of the image but not the image itself.
I tried unsuccessfully many EPS and EPSF files with

1 --------
NSEPSImageRep *epsRep = [NSEPSImageRep
imageRepWithContentsOfFile:filePath];
NSImage *fileImage = [[NSImage alloc] initWithData:[epsRep
EPSRepresentation]];
[theImageView setImage:fileImage];


2 --------
NSEPSImageRep *epsRep = [NSEPSImageRep
imageRepWithContentsOfFile:filePath];
NSImage *fileImage = [[NSImage alloc] initWithData:[epsRep
EPSRepresentation]];
[theImageView setImage:fileImage];


3 --------
NSImage *fileImage = [[NSImage alloc] initWithContentsOfFile:filePath];
[theImageView setImage:fileImage];


Do you know how to do?
Thank you.


Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: How to display an EPS file?
      • From: Robert Cerny <email@hidden>
  • Prev by Date: Re: Building menu's lazily
  • Next by Date: My runs through Xcode but not in the Finder...
  • Previous by thread: Re: putting structs in NSArray
  • Next by thread: Re: How to display an EPS file?
  • Index(es):
    • Date
    • Thread