NSImageクラス
画像クラス
継承 | NSObject |
準拠 | NSObject (NSObject) |
フレームワーク | /System/Library/Frameworks/AppKit.framework |
使用可能 | OS X 0.0以降 |
定義 | |
インポート文 | @import AppKit; |
概要
メソッドとプロパティ
新しいNSImageオブジェクトの作成と初期化
initByReferencingFile:
initByReferencingURL:
initWithCGImage:size:
initWithContentsOfFile:
initWithContentsOfURL:
initWithData:
initWithDataIgnoringOrientation:
initWithPasteboard:
imageWithSize:flipped:drawingHandler:
initWithSize:
initWithIconRef:
名前による参照
Referring to Images by Name
imageNamed:
setName:
name
画像の属性の設定
setSize:
size
isTemplate
setTemplate:
サポートする画像タイプ
canInitWithPasteboard:
imageTypes
imageUnfilteredTypes
imageFileTypes
(OS X v10.10)
imageUnfilteredFileTypes
(OS X v10.10)
imagePasteboardTypes
(OS X v10.10)
imageUnfilteredPasteboardTypes
(OS X v10.10)
画像内容と共に動く
addRepresentation:
addRepresentations:
representations
removeRepresentation:
bestRepresentationForRect:context:hints:
Setting the Image Representation Selection Criteria
setPrefersColorMatch:
prefersColorMatch
setUsesEPSOnResolutionMismatch:
usesEPSOnResolutionMismatch
setMatchesOnMultipleResolution:
matchesOnMultipleResolution
Drawing the Image
drawInRect:
drawAtPoint:fromRect:operation:fraction:
drawInRect:fromRect:operation:fraction:
drawInRect:fromRect:operation:fraction:respectFlipped:hints:
drawRepresentation:inRect:
Managing the Drawing Options
isValid
Available in OS X v10.0 through OS X v10.9
setBackgroundColor:
backgroundColor
Managing the Focus
lockFocus
lockFocusFlipped:
unlockFocus
Working With Alignment Metadata
alignmentRect
setAlignmentRect:
Managing the Caching Options
cacheMode
setCacheMode:
recache
Accessing the Delegate
setDelegate:
delegate
Producing TIFF Data for the Image
TIFFRepresentation
TIFFRepresentationUsingCompression:factor:
Producing a CGImage from an Image
CGImageForProposedRect:context:hints:
Managing Incremental Loads
cancelIncrementalLoad
Hit Testing an Image
hitTestRect:withImageDestinationRect:context:hints:flipped:
Managing Image Accessibility
accessibilityDescription
setAccessibilityDescription:
Using an Image with Core Animation
layerContentsForContentsScale:
recommendedLayerContentsScale:
Managing Axis Matching
matchesOnlyOnBestFittingAxis
setMatchesOnlyOnBestFittingAxis:
Deprecated Methods
lockFocusOnRepresentation:
(OS X v10.6)
bestRepresentationForDevice:
(OS X v10.6)
compositeToPoint:operation:
(OS X v10.6)
compositeToPoint:fromRect:operation:
(OS X v10.6)
compositeToPoint:fromRect:operation:fraction:
(OS X v10.6)
compositeToPoint:operation:fraction:
(OS X v10.6)
dissolveToPoint:fraction:
(OS X v10.6)
dissolveToPoint:fromRect:fraction:
(OS X v10.6)
setScalesWhenResized:
(OS X v10.6)
scalesWhenResized
(OS X v10.6)
setDataRetained:
(OS X v10.6)
isDataRetained
(OS X v10.6)
setCachedSeparately:
(OS X v10.6)
isCachedSeparately
(OS X v10.6)
setCacheDepthMatchesImageDepth:
(OS X v10.6)
cacheDepthMatchesImageDepth
(OS X v10.6)
setFlipped:
(OS X v10.6)
isFlipped
(OS X v10.6)
Data Types
NSCompositingOperation
NSImageLoadStatus
NSImageCacheMode
定数
Image Hint Dictionary Keys
Image Template Constants
Multiple Documents Drag Image
Sharing Permissions Named Images
System Entity Images
Toolbar Named Images
View Type Template Images