Re: How to display an EPS file?
Re: How to display an EPS file?
- Subject: Re: How to display an EPS file?
- From: Robert Cerny <email@hidden>
- Date: Tue, 26 Aug 2003 15:38:35 +0200
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.