Inherits from: NSImageRep : NSObject
Package: com.apple.yellow.application
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
public NSCachedImageRep()
public NSCachedImageRep(NSWindow aWindow, NSRect aRect)
You must draw the image in the rectangle yourself; there are no NSCachedImageRep methods for this purpose.
See Also: - size (NSImageRep)
public NSCachedImageRep(NSSize size, int depth, boolean flag, boolean alpha)
See Also: - setAlpha: (NSImageRep), - setBitsPerSample: (NSImageRep), - setCacheDepthMatchesImageDepth: (NSImage) - setCachedSeparately: (NSImage)
public NSRect rect()
See Also: - size (NSImageRep)
public NSWindow window()