How to display an EPS file?
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] initWith
Data:[epsRep
EPSRepresentation]];
[theImageView setImage:fileImage];
2 --------
NSEPSImageRep *epsRep = [NSEPSImageRep
imageRepWithContentsOfFile:filePath];
NSImage *fileImage = [[NSImage alloc] initWith
Data:[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.