ftp.nice.ch/peanuts/GeneralData/Documents/openstep/OpenStepSpec_rtf.tar.gz#/OpenStepSpec_rtf/ApplicationKit/Classes/NSEPSImageRep.rtf

This is NSEPSImageRep.rtf in view mode; [Download] [Up]

paperh18648 margl-907 margr0 margt0 margb0 fi0 ri0 ql sb0 f1 fs24 Copyright f3 'e3f1 1994 by NeXT Computer, Inc.  All Rights Reserved.

s4 li100 fi0 ri1007 ql f0 b fs36 fs100 
fs36 NSEPSImageRep 
pard s14 li2872 fi-2771 ri1007 ql tx2872 f1 b0 fs28 fs48 
fs28 f0 b fs24 Inherits From:tab b0 fs28 f1 NSImageRep : NSObject
fs20 
fs28 s7 f0 b fs24 Conforms To:tab b0 fs28 f1 NSCoding, NSCopying (NSImageRep)
fi0 NSObject (NSObject)
fs20 
fs28 s8 fi-2771 f0 b fs24 Declared In:tab b0 fs28 f1 AppKit/NSEPSImageRep.h 
fs20 
fs28 pard s19 li100 fi0 ri1007 ql f0 b fs28 fs20 
fs28 Class Description
fs14 
fs28 pard s1 li477 fi0 ri1007 ql tx2494 tx2872 tx3250 f1 b0 fs2 
fs28 An NSEPSImageRep is an object that can render an image from encapsulated PostScript code (EPS). 
fs16 
fs28 Like most other kinds of NSImageReps, an NSEPSImageRep is generally used indirectly, through an NSImage object. An NSImage must be able to choose between various representations of a given image. It also needs to provide an off-screen cache of the appropriate depth for any image it uses. It determines this information by querying its NSImageReps.
fs16 
fs28 Thus to work with an NSImage, an NSEPSImageRep must be able to provide some information about its image. The size of the object is set from the bounding box specified in the EPS header comments. Use these methods, inherited from the NSImageRep class, to set the other attributes of the NSEPSImageRep: 
fs16 
fs28 pard s20 li854 fi0 ri1007 ql tx4509 tx10180 setColorSpaceName:
fi0 setAlpha:
fi0 setPixelsHigh:
fi0 setPixelsWide:
fi0 setBitsPerSample:
fs6 
fs28 pard s19 li100 fi0 ri1007 ql f0 b fs36 
fs28 Initializing a New Instance 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 + (id)b imageRepWithDatab0 :(NSData *)i epsDatatab i0 Invokes b initWithData:b0  to return an instance with data from i epsDatai0 .
fi-6552 fs16 
fs28 fi-6552 {f3 -} (id)b initWithData:b0 (NSData *)i epsDatai0 tab Initialize an instance with data from i epsDatai0 .
pard s19 li100 fi0 ri1007 ql f0 b fs48 
fs28 Getting Image Data 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (NSRect)b boundingBoxb0 tab Returns the rectangle that bounds the image.
fi-6552 fs16 
fs28 fi-6552 {f3 -} (NSData *)b EPSRepresentationb0 tab Returns the EPS representation of the image.
pard s19 li100 fi0 ri1007 ql f0 b fs48 
fs28 Drawing the Image 
fs14 
fs28 pard s9 li7029 fi-6552 ri1007 ql tx6652 tx7030 f1 b0 fs2 
fs28 fi-6552 {f3 -} (void)b prepareGStateb0 tab Implemented by subclasses to initialize the graphics state before the image is drawn.
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.