# NSImageRep

fedor@colorado.edu
Generated at 2026-02-17 21:02:56 +0000

Abstract representation of an image.

1996 Free Software Foundation, Inc.
Software documentation for the NSImageRep class
AppKit/NSImageRep.h
NSCoding
NSCopying
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
canInitWithData:
data
Returns `NO`. It is the subclass' responsibility to implement this method.

See Also:

[NSBitmapImageRep +canInitWithData:]
canInitWithPasteboard:
pasteboard
Description forthcoming.
imageFileTypes
Returns array produced by calling -imageUnfilteredFileTypes .
imagePasteboardTypes
Description forthcoming.
imageRepClassForData:
data
Description forthcoming.
imageRepClassForFileType:
type
Description forthcoming.
imageRepClassForPasteboardType:
type
Description forthcoming.
imageRepWithContentsOfFile:
filename
Returns a NSImageRep with the contents of filename.
imageRepWithContentsOfURL:
anURL
Description forthcoming.
imageRepWithPasteboard:
pasteboard
Description forthcoming.
imageRepsWithContentsOfFile:
filename
Returns an array of newly allocated NSImageRep objects with the contents of filename.
imageRepsWithContentsOfURL:
anURL
Description forthcoming.
imageRepsWithPasteboard:
pasteboard
Description forthcoming.
imageUnfilteredFileTypes
Returns `nil`. It is the subclass' responsibility to implement this method.

See Also:

[NSBitmapImageRep +imageUnfilteredFileTypes]
imageUnfilteredPasteboardTypes
Description forthcoming.
registerImageRepClass:
imageRepClass
Description forthcoming.
registeredImageRepClasses
Description forthcoming.
unregisterImageRepClass:
imageRepClass
Description forthcoming.
bitsPerSample
Returns the bits per sample of the receiver.

See Also:

-setBitsPerSample:
colorSpaceName
Description forthcoming.
draw
Primitive method which must be overridden by subclasses to perform their drawing. They should draw inside a rectangle with an origin at (0, 0) and a size equal to the receiver's size, and they should entirely fill this rectangle, overwriting the destination alpha as well.
drawAtPoint:
aPoint
Description forthcoming.
drawInRect:
aRect
Description forthcoming.
drawInRect:
dstRect
fromRect:
srcRect
operation:
op
fraction:
delta
respectFlipped:
respectFlipped
hints:
hints
Fallback implementation for subclasses which don't implement their own direct drawing TODO: explain how -draw, -drawInRect: , -drawAtPoint: clear their background
hasAlpha
Description forthcoming.
isOpaque
Description forthcoming.
pixelsHigh
Description forthcoming.
pixelsWide
Description forthcoming.
setAlpha:
flag
Description forthcoming.
setBitsPerSample:
anInt
Sets the number of bits for each component of a pixel.

See Also:

-bitsPerSample
setColorSpaceName:
aString
Description forthcoming.
setOpaque:
flag
Description forthcoming.
setPixelsHigh:
anInt
Description forthcoming.
setPixelsWide:
anInt
Description forthcoming.
setSize:
aSize
Sets the size of the image to aSize.
size
Returns the size of the image.
Software documentation for the NSImageRep(GSQuartz) category
AppKit/NSImageRep.h
Description forthcoming.
CGImageForProposedRect:
proposedDestRect
context:
referenceContext
hints:
hints
Description forthcoming.