NSImageRep
A semiabstract superclass that provides subclasses that you use to draw an image from a particular type of source data.
Declaration
class NSImageRepOverview
The NSImageRep class is called “semiabstract” because it has some instance variables and implementation of its own, in addition to defining subclasses. Although an NSImageRep subclass can be used directly, it is typically accessed through an NSImage object, which manages a group of image representations, choosing the best one for the current output device.
Topics
Creating Representations of Images
imageReps(withContentsOfFile:)imageReps(with:)imageReps(withContentsOf:)init(contentsOfFile:)init(pasteboard:)init(contentsOf:)init()init(coder:)
Determining Types for Images
canInit(with:)canInit(with:)imageTypesimageUnfilteredTypesimageFileTypes()imagePasteboardTypes()imageUnfilteredFileTypes()imageUnfilteredPasteboardTypes()
Accessing Size of Images
Specifying Information About the Representation
Getting Core Graphics Images
Drawing Images
Managing Representation Subclasses of Images
class(forType:)class(for:)registeredClassesregisterClass(_:)unregisterClass(_:)class(forFileType:)class(forPasteboardType:)