NSBitmapImageRepクラス
ビットマップ画像のクラス
継承 | NSObject |
準拠 | NSObject (NSObject) |
フレームワーク | /System/Library/Frameworks/AppKit.framework |
使用可能 | OS X 10.0以降 |
定義 | |
インポート文 | @import AppKit; |
概要
ビットマップ画像のクラスです。
ピクセルデータを直接操作する場合に使用します。
ViewからNSBitmapImageRepを作成する場合は NSViewのcacheDisplayInRect: を使用します。
Swift
//Bitmapデータ作成 let theBitmap = aView002?.bitmapImageRepForCachingDisplayInRect(aView002!.bounds) aView002!.cacheDisplayInRect(aView002!.bounds, toBitmapImageRep: theBitmap! )
メソッドとプロパティ
NSBitmapImageRepオブジェクトの作成
-imageRepWithData:
データからビットマップ表現を作って返します
-imageRepsWithData:
-colorizeByMappingGray:toColor:blackMapping:whiteMapping:
initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:
-initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:
initWithCGImage:
initWithCIImage:
-initWithData
-initWithFocusedViewRect
-initForIncrementalLoad
画像についての情報の取得
-bitmapFormat
bitsPerPixel
bytesPerPlane
bytesPerRow
isPlanar (OS X v10.0 〜 OS X v10.9)
numberOfPlanes
samplesPerPixel
画像データの取得
画像の解像度の変換
TIFFRepresentationOfImageRepsInArray:
TIFFRepresentationOfImageRepsInArray:usingCompression:factor:
TIFFRepresentation
TIFFRepresentationUsingCompression:factor:
representationOfImageRepsInArray:usingType:properties:
representationUsingType:properties:
圧縮タイプの管理
getTIFFCompressionTypes:count:
localizedNameForTIFFCompressionType:
canBeCompressedUsing:
setCompression:factor:
getCompression:factor:
setProperty:withValue:
valueForProperty:
コアイメージ画像の取得
CGImage
カラースペースの管理
bitmapImageRepByConvertingToColorSpace:renderingIntent:
bitmapImageRepByRetaggingWithColorSpace:
colorSpace
データタイプ
NSBitmapImageFileType
NSTIFFCompression
NSBitmapFormat
定数
NSImageRepLoadStatus
Bitmap image properties