Contents

initWithSize:depth:separate:alpha:

Returns a cached image representation initialized with the specified image characteristics.

Declaration

- (id) initWithSize:(NSSize) size depth:(NSWindowDepth) depth separate:(BOOL) flag alpha:(BOOL) alpha;

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:

    True if the receiver should use a separate offscreen window to store the image; otherwise, False if the receiver should use a shared window.

  • alpha:

    True if the image includes transparency information; otherwise, False.

Return Value

The initialized NSCachedImageRep object or nil if the object could not be initialized.

See Also

Related Documentation

Initializing Cached Representations of Images