Documentation Archive Developer
Search

ImageIO Changes for Swift

ImageIO

Declaration
From
enum CGImageMetadataErrors : Int32 {
    case Unknown
    case UnsupportedFormat
    case BadArgument
    case ConflictingArguments
    case PrefixConflict
}
To
enum CGImageMetadataErrors : Int32 {
    case unknown
    case unsupportedFormat
    case badArgument
    case conflictingArguments
    case prefixConflict
}

Declaration
From
case BadArgument
To
case badArgument

Declaration
From
case ConflictingArguments
To
case conflictingArguments

Declaration
From
case PrefixConflict
To
case prefixConflict

Declaration
From
case Unknown
To
case unknown

Declaration
From
case UnsupportedFormat
To
case unsupportedFormat

Declaration
From
enum CGImageMetadataType : Int32 {
    case Invalid
    case Default
    case String
    case ArrayUnordered
    case ArrayOrdered
    case AlternateArray
    case AlternateText
    case Structure
}
To
enum CGImageMetadataType : Int32 {
    case invalid
    case `default`
    case string
    case arrayUnordered
    case arrayOrdered
    case alternateArray
    case alternateText
    case structure
}

Declaration
From
case AlternateArray
To
case alternateArray

Declaration
From
case AlternateText
To
case alternateText

Declaration
From
case ArrayOrdered
To
case arrayOrdered

Declaration
From
case ArrayUnordered
To
case arrayUnordered

Declaration
From
case Default
To
case `default`

Declaration
From
case Invalid
To
case invalid

Declaration
From
case String
To
case string

Declaration
From
case Structure
To
case structure

Declaration
From
enum CGImagePropertyOrientation : UInt32 {
    case Up
    case UpMirrored
    case Down
    case DownMirrored
    case LeftMirrored
    case Right
    case RightMirrored
    case Left
}
To
enum CGImagePropertyOrientation : UInt32 {
    case up
    case upMirrored
    case down
    case downMirrored
    case leftMirrored
    case right
    case rightMirrored
    case left
}

Declaration
From
case Down
To
case down

Declaration
From
case DownMirrored
To
case downMirrored

Declaration
From
case Left
To
case left

Declaration
From
case LeftMirrored
To
case leftMirrored

Declaration
From
case Right
To
case right

Declaration
From
case RightMirrored
To
case rightMirrored

Declaration
From
case Up
To
case up

Declaration
From
case UpMirrored
To
case upMirrored

Declaration
From
enum CGImageSourceStatus : Int32 {
    case StatusUnexpectedEOF
    case StatusInvalidData
    case StatusUnknownType
    case StatusReadingHeader
    case StatusIncomplete
    case StatusComplete
}
To
enum CGImageSourceStatus : Int32 {
    case statusUnexpectedEOF
    case statusInvalidData
    case statusUnknownType
    case statusReadingHeader
    case statusIncomplete
    case statusComplete
}

Declaration
From
case StatusComplete
To
case statusComplete

Declaration
From
case StatusIncomplete
To
case statusIncomplete

Declaration
From
case StatusInvalidData
To
case statusInvalidData

Declaration
From
case StatusReadingHeader
To
case statusReadingHeader

Declaration
From
case StatusUnexpectedEOF
To
case statusUnexpectedEOF

Declaration
From
case StatusUnknownType
To
case statusUnknownType

Declaration
From
func CGImageDestinationCopyImageSource(_ idst: CGImageDestination, _ isrc: CGImageSource, _ options: CFDictionary?, _ err: UnsafeMutablePointer<Unmanaged<CFError>?>) -> Bool
To
func CGImageDestinationCopyImageSource(_ idst: CGImageDestination, _ isrc: CGImageSource, _ options: CFDictionary?, _ err: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> Bool

Declaration
From
func CGImageMetadataEnumerateTagsUsingBlock(_ metadata: CGImageMetadata, _ rootPath: CFString?, _ options: CFDictionary?, _ block: CGImageMetadataTagBlock)
To
func CGImageMetadataEnumerateTagsUsingBlock(_ metadata: CGImageMetadata, _ rootPath: CFString?, _ options: CFDictionary?, _ block: ImageIO.CGImageMetadataTagBlock)

Declaration
From
func CGImageMetadataRegisterNamespaceForPrefix(_ metadata: CGMutableImageMetadata, _ xmlns: CFString, _ prefix: CFString, _ err: UnsafeMutablePointer<Unmanaged<CFError>?>) -> Bool
To
func CGImageMetadataRegisterNamespaceForPrefix(_ metadata: CGMutableImageMetadata, _ xmlns: CFString, _ prefix: CFString, _ err: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> Bool

Declaration
From
func CGImageMetadataSetValueMatchingImageProperty(_ metadata: CGMutableImageMetadata, _ dictionaryName: CFString, _ propertyName: CFString, _ value: AnyObject) -> Bool
To
func CGImageMetadataSetValueMatchingImageProperty(_ metadata: CGMutableImageMetadata, _ dictionaryName: CFString, _ propertyName: CFString, _ value: CFTypeRef) -> Bool

Declaration
From
func CGImageMetadataSetValueWithPath(_ metadata: CGMutableImageMetadata, _ parent: CGImageMetadataTag?, _ path: CFString, _ value: AnyObject) -> Bool
To
func CGImageMetadataSetValueWithPath(_ metadata: CGMutableImageMetadata, _ parent: CGImageMetadataTag?, _ path: CFString, _ value: CFTypeRef) -> Bool

Declaration
From
func CGImageMetadataTagCopyValue(_ tag: CGImageMetadataTag) -> AnyObject?
To
func CGImageMetadataTagCopyValue(_ tag: CGImageMetadataTag) -> CFTypeRef?

Declaration
From
func CGImageMetadataTagCreate(_ xmlns: CFString, _ prefix: CFString?, _ name: CFString, _ type: CGImageMetadataType, _ value: AnyObject) -> CGImageMetadataTag?
To
func CGImageMetadataTagCreate(_ xmlns: CFString, _ prefix: CFString?, _ name: CFString, _ type: CGImageMetadataType, _ value: CFTypeRef) -> CGImageMetadataTag?