Inherits from: NSImageRep : NSObject
Conforms to: NSCoding
(from NSImageRep)
NSCopying (from NSImageRep)
NSObject (from NSObject)
Declared in: AppKit/NSImageRep.h
NSCachedImageRep defines an object that stores its source data as a rendered image in a window, typically a window that stays off-screen. The only data available for reproducing the image is the image itself. Thus an NSCachedImageRep differs from the other kinds of NSImageReps defined in the Application Kit, all of which can reproduce an image from the information originally used to draw it. Instances of this class are generally used indirectly, through an NSImage object.
See "Caching Representations" in the NSImage class description for more information.
- Initializing an NSCachedImageRep
- - initWithSize:depth:separate:alpha:
- - initWithWindow:rect:
- Getting the representation
- - rect
- - window
- (id)initWithSize:(NSSize)size
depth:(NSWindowDepth)depth
separate:(BOOL)flag
alpha:(BOOL)alpha
See Also: - setAlpha: (NSImageRep), - setBitsPerSample: (NSImageRep), - setCacheDepthMatchesImageDepth: (NSImage) - setCachedSeparately: (NSImage)
- (id)initWithWindow:(NSWindow *)aWindow rect:(NSRect)aRect
You must draw the image in the rectangle yourself; there are no NSCachedImageRep methods for this purpose.
See Also: - size (NSImageRep)
- (NSRect)rect
See Also: - size (NSImageRep)
- (NSWindow *)window