TIFFFieldTypes

Objective-C

@interface TIFFFieldTypes : NSObject

Swift

class TIFFFieldTypes : NSObject

Field Types

  • Get the field type value

    Declaration

    Objective-C

    + (int)value:(enum TIFFFieldType)fieldType;

    Swift

    class func value(_ fieldType: TIFFFieldType) -> Int32

    Parameters

    fieldType

    field type

    Return Value

    field type value

  • Get the number of bytes per value

    Declaration

    Objective-C

    + (int)bytes:(enum TIFFFieldType)fieldType;

    Swift

    class func bytes(_ fieldType: TIFFFieldType) -> Int32

    Parameters

    fieldType

    field type

    Return Value

    number of bytes

  • Get the number of bits per value

    Declaration

    Objective-C

    + (int)bits:(enum TIFFFieldType)fieldType;

    Swift

    class func bits(_ fieldType: TIFFFieldType) -> Int32

    Parameters

    fieldType

    field type

    Return Value

    number of bits

  • Get the field type

    Declaration

    Objective-C

    + (enum TIFFFieldType)typeByValue:(int)value;

    Swift

    class func type(byValue value: Int32) -> TIFFFieldType

    Parameters

    value

    field type value

    Return Value

    field type

  • Get the field type of the sample format and bits per sample

    Declaration

    Objective-C

    + (enum TIFFFieldType)typeBySampleFormat:(int)sampleFormat
                            andBitsPerSample:(int)bitsPerSample;

    Swift

    class func type(bySampleFormat sampleFormat: Int32, andBitsPerSample bitsPerSample: Int32) -> TIFFFieldType

    Parameters

    sampleFormat

    sample format

    bitsPerSample

    bits per sample

    Return Value

    field type

  • Get the sample format of the field type

    Declaration

    Objective-C

    + (int)sampleFormatByType:(enum TIFFFieldType)fieldType;

    Swift

    class func sampleFormat(by fieldType: TIFFFieldType) -> Int32

    Parameters

    fieldType

    field type

    Return Value

    sample format