NSEPSImageRep Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AppKit.framework |
| Availability | Available in OS X v10.0 and later. |
| Companion guide | |
| Declared in | NSEPSImageRep.h |
Class Methods
imageRepWithData:
Creates and returns an NSEPSImageRep object initialized with the specified EPS data.
Parameters
- epsData
The EPS data representing the desired image.
Return Value
A new, initialized NSEPSImageRep object or nil if the object could not be initialized.
Discussion
The size of the receiver is set using the bounding box information specified in the EPS header comments.
Availability
- Available in OS X v10.0 and later.
Declared In
NSEPSImageRep.hInstance Methods
boundingBox
Returns the rectangle that bounds the receiver.
Return Value
The bounding box of the receiver. This rectangle is obtained from the “%%BoundingBox:” comment in the EPS header when the NSEPSImageRep object is initialized.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSEPSImageRep.hEPSRepresentation
Returns the EPS representation of the receiver.
Return Value
A data object containing the EPS data for the image.
Availability
- Available in OS X v10.0 and later.
Declared In
NSEPSImageRep.hinitWithData:
Returns an NSEPSImageRep object initialized with the specified EPS data.
Parameters
- epsData
The EPS data representing the desired image.
Return Value
The initialized NSEPSImageRep object or nil if the object could not be initialized
Discussion
The size of the receiver is set using the bounding box information specified in the EPS header comments.
Availability
- Available in OS X v10.0 and later.
Declared In
NSEPSImageRep.hprepareGState
Implemented by subclasses to configure the graphics state prior to drawing.
Discussion
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.
Availability
- Available in OS X v10.0 and later.
Declared In
NSEPSImageRep.h© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-01-22)