Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/AppKit.framework |
Availability | Available in Mac OS X v10.0 and later. |
Companion guide | |
Declared in | NSEPSImageRep.h |
An NSEPSImageRep
object can render an image from encapsulated PostScript (EPS) code.
Creates and returns an NSEPSImageRep
object initialized with the specified EPS data.
+ (id)imageRepWithData:(NSData *)epsData
The EPS data representing the desired image.
A new, initialized NSEPSImageRep
object or nil
if the object could not be initialized.
The size of the receiver is set using the bounding box information specified in the EPS header comments.
NSEPSImageRep.h
Returns the rectangle that bounds the receiver.
- (NSRect)boundingBox
The bounding box of the receiver. This rectangle is obtained from the “%%BoundingBox:
” comment in the EPS header when the NSEPSImageRep
object is initialized.
NSEPSImageRep.h
Returns the EPS representation of the receiver.
- (NSData *)EPSRepresentation
A data object containing the EPS data for the image.
NSEPSImageRep.h
Returns an NSEPSImageRep
object initialized with the specified EPS data.
- (id)initWithData:(NSData *)epsData
The EPS data representing the desired image.
The initialized NSEPSImageRep
object or nil
if the object could not be initialized
The size of the receiver is set using the bounding box information specified in the EPS header comments.
NSEPSImageRep.h
Implemented by subclasses to configure the graphics state prior to drawing.
- (void)prepareGState
The draw
method of NSEPSImageRep
sends this message to itself just before rendering the EPS code. The default implementation of this method does nothing. You can override it in your subclass to prepare the graphics state as needed.
NSEPSImageRep.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-01-22)