Deprecated NSCachedImageRep Methods
A method identified as deprecated has been superseded and may become unsupported in the future.
Deprecated in OS X v10.6
initWithSize:depth:separate:alpha:
Returns an NSCachedImageRep object initialized with the specified image characteristics. (Deprecated in OS X v10.6.)
Parameters
- size
The size of the image, measured in points.
- depth
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.
- flag
YESif the receiver should use a separate offscreen window to store the image; otherwise,NOif the receiver should use a shared window.- alpha
YESif the image includes transparency information; otherwise,NO.
Return Value
The initialized NSCachedImageRep object or nil if the object could not be initialized.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.6.
See Also
-
– setAlpha:(NSImageRep) -
– setBitsPerSample:(NSImageRep) -
– setCacheDepthMatchesImageDepth:(NSImage) -
– setCachedSeparately:(NSImage)
Declared In
NSCachedImageRep.hinitWithWindow:rect:
Returns an NSCachedImageRep object initialized for drawing in the specified window. (Deprecated in OS X v10.6.)
Parameters
- aWindow
The window (typically offscreen) in which the image is to be rendered. The window is retained by the receiver.
- aRect
The position and size of the image in the specified window. This rectangle should be specified in the base coordinate system of the window.
Discussion
You must draw the image yourself in the designated part of the window. There are no NSCachedImageRep methods for this purpose.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.6.
See Also
-
– size(NSImageRep)
Declared In
NSCachedImageRep.hrect
Returns the rectangle where the receiver is cached. (Deprecated in OS X v10.6.)
Return Value
The rectangle in the associated offscreen window where the receiver's image is located.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.6.
See Also
-
– size(NSImageRep)
Declared In
NSCachedImageRep.h© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-01-15)