init(focusedViewRect:)
Initializes a newly allocated bitmap image representation with bitmap data from a rendered image.
Declaration
init?(focusedViewRect rect: NSRect)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 Bitmap Representations of Images
imageReps(with:)colorize(byMappingGray:to:blackMapping:whiteMapping:)init(bitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:)init(bitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:)init(cgImage:)init(ciImage:)init(data:)init(forIncrementalLoad:)