Enumeration

NSBitmapImageRep.TIFFCompression

Constants representing the supported TIFF data-compression schemes.

Declaration

enum TIFFCompression : UInt

Topics

Constants

case none

No compression.

case ccittfax3

CCITT Fax Group 3 compression.

case ccittfax4

CCITT Fax Group 4 compression.

case lzw

LZW compression.

case jpeg

JPEG compression. No longer supported for input or output.

case next

NeXT compressed. Supported for input only.

case packBits

PackBits compression.

case oldJPEG

Old JPEG compression. No longer supported for input or output.

See Also

Managing Compression Types

class func getTIFFCompressionTypes(UnsafeMutablePointer<UnsafePointer<NSBitmapImageRep.TIFFCompression>?>, count: UnsafeMutablePointer<Int>)

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

class func localizedName(forTIFFCompressionType: NSBitmapImageRep.TIFFCompression) -> String?

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

func canBeCompressed(using: NSBitmapImageRep.TIFFCompression) -> Bool

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

func setCompression(NSBitmapImageRep.TIFFCompression, factor: Float)

Sets the receiver’s compression type and compression factor.

func getCompression(UnsafeMutablePointer<NSBitmapImageRep.TIFFCompression>?, factor: UnsafeMutablePointer<Float>?)

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

func value(forProperty: NSBitmapImageRep.PropertyKey) -> Any?

Returns the value for the specified property.