NSImage Class Reference
PDF
Overview
Tasks
Initializing a New NSImage Object
Setting the Image Attributes
Referring to Images by Name
Determining the Supported Image Types
Working With Image Representations
Hit Testing an Image
Setting the Image Representation Selection Criteria
Managing the Focus
Drawing the Image
Working With Alignment Metadata
Setting the Image Storage Options
Setting the Image Drawing Options
Assigning a Delegate
Producing TIFF Data for the Image
Producing a CGImage from an Image
Managing Incremental Loads
Image Accessibility
Class Methods
canInitWithPasteboard:
imageFileTypes
imageNamed:
imagePasteboardTypes
imageTypes
imageUnfilteredFileTypes
imageUnfilteredPasteboardTypes
imageUnfilteredTypes
Instance Methods
accessibilityDescription
addRepresentation:
addRepresentations:
alignmentRect
backgroundColor
bestRepresentationForRect:context:hints:
cacheMode
cancelIncrementalLoad
CGImageForProposedRect:context:hints:
delegate
drawAtPoint:fromRect:operation:fraction:
drawInRect:fromRect:operation:fraction:
drawInRect:fromRect:operation:fraction:respectFlipped:hints:
drawRepresentation:inRect:
hitTestRect:withImageDestinationRect:context:hints:flipped:
initByReferencingFile:
initByReferencingURL:
initWithCGImage:size:
initWithContentsOfFile:
initWithContentsOfURL:
initWithData:
initWithDataIgnoringOrientation:
initWithIconRef:
initWithPasteboard:
initWithSize:
isTemplate
isValid
lockFocus
lockFocusFlipped:
matchesOnMultipleResolution
name
prefersColorMatch
recache
removeRepresentation:
representations
setAccessibilityDescription:
setAlignmentRect:
setBackgroundColor:
setCacheMode:
setDelegate:
setMatchesOnMultipleResolution:
setName:
setPrefersColorMatch:
setSize:
setTemplate:
setUsesEPSOnResolutionMismatch:
size
TIFFRepresentation
TIFFRepresentationUsingCompression:factor:
unlockFocus
usesEPSOnResolutionMismatch
Constants
Image Hint Dictionary Keys
NSCompositingOperation
NSImageLoadStatus
NSImageCacheMode
Image Template Constants
Multiple Documents Drag Image
Sharing Permissions Named Images
System Entity Images
Toolbar Named Images
View Type Template Images
Appendix A: Deprecated NSImage Methods
Deprecated in Mac OS X v10.6
bestRepresentationForDevice:
cacheDepthMatchesImageDepth
compositeToPoint:fromRect:operation:
compositeToPoint:fromRect:operation:fraction:
compositeToPoint:operation:
compositeToPoint:operation:fraction:
dissolveToPoint:fraction:
dissolveToPoint:fromRect:fraction:
isCachedSeparately
isDataRetained
isFlipped
lockFocusOnRepresentation:
scalesWhenResized
setCacheDepthMatchesImageDepth:
setCachedSeparately:
setDataRetained:
setFlipped:
setScalesWhenResized:
Revision History
Index
COMPANION GUIDE
Cocoa Drawing Guide