Instance Method

initWithFocusedViewRect:

Initializes the receiver, a newly allocated NSBitmapImageRep object, with bitmap data read from a rendered image.

Declaration

- (instancetype)initWithFocusedViewRect:(NSRect)rect;

Parameters

rect

A rectangle that specifies an area of the current window in the current coordinate system.

Return Value

Returns the initialized object or nil If for any reason the new object can’t be initialized.

Discussion

This method uses imaging operators to read the image data into a buffer; the object is then created from that data. The object is initialized with information about the image obtained from the window server.

See Also

Creating an NSBitmapImageRep Object

+ imageRepWithData:

Creates and returns an NSBitmapImageRep object initialized with the first image in the supplied data.

+ imageRepsWithData:

Creates and returns an array of initialized NSBitmapImageRep objects corresponding to the images in the supplied data.

- initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:

Initializes the receiver, a newly allocated NSBitmapImageRep object, so it can render the specified image.

- initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:

Initializes the receiver, a newly allocated NSBitmapImageRep object, so it can render the specified image.

- initWithCGImage:

Returns an NSBitmapImageRep object created from a Core Graphics image object.

- initWithCIImage:

Returns an NSBitmapImageRep object created from a Core Image object.

- initWithData:

Initializes a newly allocated NSBitmapImageRep from the provided data.

- initForIncrementalLoad

Initializes and returns the receiver, a newly allocated NSBitmapImageRep object, for incremental loading.