A method identified as deprecated has been superseded and may become unsupported in the future.
Returns an NSCachedImageRep object initialized with the specified image characteristics. (Deprecated in Mac OS X v10.6.)
- (id)initWithSize:(NSSize)size depth:(NSWindowDepth)depth separate:(BOOL)flag alpha:(BOOL)alpha
The size of the image, measured in points.
The bit depth of the image. Specify 0 if you want the image to be the same depth as the deepest screen on the current system.
YES if the receiver should use a separate offscreen window to store the image; otherwise, NO if the receiver should use a shared window.
YES if the image includes transparency information; otherwise, NO.
The initialized NSCachedImageRep object or nil if the object could not be initialized.
– setAlpha: (NSImageRep)– setBitsPerSample: (NSImageRep)– setCacheDepthMatchesImageDepth: (NSImage)– setCachedSeparately: (NSImage)NSCachedImageRep.hReturns an NSCachedImageRep object initialized for drawing in the specified window. (Deprecated in Mac OS X v10.6.)
- (id)initWithWindow:(NSWindow *)aWindow rect:(NSRect)aRect
The window (typically offscreen) in which the image is to be rendered. The window is retained by the receiver.
The position and size of the image in the specified window. This rectangle should be specified in the base coordinate system of the window.
You must draw the image yourself in the designated part of the window. There are no NSCachedImageRep methods for this purpose.
– size (NSImageRep)NSCachedImageRep.hReturns the rectangle where the receiver is cached. (Deprecated in Mac OS X v10.6.)
- (NSRect)rect
The rectangle in the associated offscreen window where the receiver's image is located.
– size (NSImageRep)NSCachedImageRep.hReturns the window where the receiver is cached. (Deprecated in Mac OS X v10.6.)
- (NSWindow *)window
The window (typically offscreen) used to store the image.
NSCachedImageRep.h© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-01-15)