TechnologiesGraphics, Imaging & Compositing

ImageIO

iOSmacOStvOSwatchOSvisionOS

ImageIO reads, writes, animates, and inspects image data and metadata across many file formats. You decode and incrementally load images with CGImageSource, tracking progress through CGImageSourceStatus, and encode images to a destination format with CGImageDestination. For metadata, you read and build tag collections using CGImageMetadata and CGMutableImageMetadata, where each entry is a CGImageMetadataTag classified by CGImageMetadataType, and you drive animated image playback through CGImageAnimationStatus.

Reading Images 2

Decode and incrementally load images from a data source while tracking progress.

  • Cl
    CGImageSource
    An opaque type that you use to read image data from a URL, data object, or data consumer.
  • En
    CGImageSourceStatus
    The set of status values for images and image sources.

Writing Images 1

Encode and write images to a destination in a chosen file format.

  • Cl
    CGImageDestination
    An opaque type that you use to write image data to a URL, data object, or data consumer.

Image Metadata 5

Read, build, and classify the metadata tags attached to an image.

  • Cl
    CGImageMetadata
    An immutable object that contains the XMP metadata associated with an image.
  • Cl
    CGMutableImageMetadata
    An opaque type for adding or modifying image metadata.
  • Cl
    CGImageMetadataTag
    An immutable type that contains information about a single piece of image metadata.
  • En
    CGImageMetadataType
    Constants that indicate the XMP type for a metadata tag.
  • En
    CGImageMetadataErrors
    Constants for errors that occur when getting or setting metadata information.

Animated Images 1

Drive playback of multi-frame, animated image sources.

  • En
    CGImageAnimationStatus
    Constants that indicate the result of animating an image sequence.

Enumerations 2

  • En
    CGImagePropertyOrientation
    A value describing the intended display orientation for an image.
  • En
    CGImagePropertyTGACompression
    Possible values for ``kCGImagePropertyTGACompression``.

Type Aliases 2

  • Ty
    CGImageSourceAnimationBlock
    The block to execute for each frame of an image animation.
  • Ty
    CGImageMetadataTagBlock
    The block to execute when enumerating the tags of a metadata object.
← Graphics, Imaging & Compositing