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

Re: How to display an EPS file?


  • Subject: Re: How to display an EPS file?
  • From: Lorenzo <email@hidden>
  • Date: Tue, 26 Aug 2003 21:53:12 +0200

Hi,
thank you. The problem is that EPS file really contains the preview image.


Best Regards
--
Lorenzo
email: email@hidden

> From: Robert Cerny <email@hidden>
> Date: Tue, 26 Aug 2003 15:38:35 +0200
> To: Lorenzo <email@hidden>
> Cc: email@hidden
> Subject: Re: How to display an EPS file?
>
> Hi,
> the problem is that your eps file doesn't contain a preview image. You
> can create one by Photoshop - the preview is saves inside of eps as a
> tiff or PICT. Otherwise you would need to interpret it using
> ghostscript or similar technology. I've seen some ps to pdf converting
> in Panther, but have no idea if it will be usable for every developer.
>
> HTH
> Robert
>
> On Tuesday, August 26, 2003, at 03:11 PM, Lorenzo wrote:
>
>> 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.
_______________________________________________
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: Chris Hanson <email@hidden>
References: 
 >Re: How to display an EPS file? (From: Robert Cerny <email@hidden>)

  • Prev by Date: Can "openFile" open folders?
  • Next by Date: Re: Formats supported by NSImage?
  • Previous by thread: Re: How to display an EPS file?
  • Next by thread: Re: How to display an EPS file?
  • Index(es):
    • Date
    • Thread