Contents

compressionFactor

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

Declaration

static let compressionFactor: NSBitmapImageRep.PropertyKey

Discussion

Used only for JPEG files. JPEG compression in TIFF files is not supported, and the factor is ignored. The value is a float between 0.0 and 1.0, with 1.0 resulting in no compression and 0.0 resulting in the maximum compression possible. It’s set when reading in and used when writing out the image.

See Also

Bitmap Properties