Type Alias

NSBitmapImageRepPropertyKey

Declaration

typedef NSString *NSBitmapImageRepPropertyKey;

Discussion

When using the valueForProperty: method to retrieve the the value for any of these keys, be sure to check that the returned value is non-nil before you attempt to use it. A bitmap image representation may return nil for any values that have not yet been set.

Topics

Bitmap Properties

NSImageColorSyncProfileData

Identifies an NSData object containing the ColorSync profile data.

NSImageCompressionFactor

Identifies an NSNumber object containing the compression factor of the image.

NSImageCompressionMethod

Identifies an NSNumber object identifying the compression method of the image.

NSImageCurrentFrame

Identifies an NSNumber object containing the current frame for an animated GIF file.

NSImageCurrentFrameDuration

Identifies an NSNumber object containing the duration (in seconds) of the current frame for an animated GIF image.

NSImageDitherTransparency

Identifies an NSNumber object containing a Boolean that indicates whether the image is dithered.

NSImageEXIFData

Identifies an NSDictionary object containing the EXIF data for the image.

NSImageFallbackBackgroundColor

Specifies the background color to use when writing to an image format (such as JPEG) that doesn't support alpha. The color's alpha value is ignored. The default background color, when this property is not specified, is white. The value of the property should be an NSColor object. This constant corresponds to the kCGImageDestinationBackgroundColor constant in Quartz.

NSImageFrameCount

Identifies an NSNumber object containing the number of frames in an animated GIF file.

NSImageGamma

Identifies an NSNumber object containing the gamma value for the image.

NSImageInterlaced

Identifies an NSNumber object containing a Boolean value that indicates whether the image is interlaced.

NSImageLoopCount

Identifies an NSNumber object containing the number of loops to make when animating a GIF image.

NSImageProgressive

Identifies an NSNumber object containing a Boolean that indicates whether the image uses progressive encoding.

NSImageRGBColorTable

Identifies an NSData object containing the RGB color table.

See Also

Managing Compression Types

+ getTIFFCompressionTypes:count:

Returns by indirection an array of all available compression types that can be used when writing a TIFF image.

+ localizedNameForTIFFCompressionType:

Returns an autoreleased string containing the localized name for the specified compression type.

- canBeCompressedUsing:

Tests whether the receiver can be compressed by the specified compression scheme.

- setCompression:factor:

Sets the receiver’s compression type and compression factor.

- getCompression:factor:

Returns by indirection the receiver’s compression type and compression factor.

- setProperty:withValue:

Sets the image’s property to value.

- valueForProperty:

Returns the value for the specified property.

NSTIFFCompression

Constants representing the supported TIFF data-compression schemes.