Images and PDF

Create and manage images, including those that use bitmap and PDF formats.

Topics

Representations

UIImage

An object that manages image data in your app.

UIImageSymbolConfiguration

An object containing the specific font, size, style, and weight attributes to apply to a symbol image.

UIImageConfiguration

A configuration object containing the traits that the system used when selecting the current image variant.

Image Creation

UIGraphicsBeginImageContext

Creates a bitmap-based graphics context and makes it the current context.

UIGraphicsGetImageFromCurrentImageContext

Returns an image based on the contents of the current bitmap-based graphics context.

UIGraphicsEndImageContext

Removes the current bitmap-based graphics context from the top of the stack.

UIImageJPEGRepresentation

Returns a data object containing the specified image in JPEG format.

UIImagePNGRepresentation

Returns a data object containing the specified image in PNG format

Photo Album

UIImageWriteToSavedPhotosAlbum

Adds the specified image to the user’s Camera Roll album.

UISaveVideoAtPathToSavedPhotosAlbum

Adds the movie at the specified path to the user’s Camera Roll album.

UIVideoAtPathIsCompatibleWithSavedPhotosAlbum

Returns a Boolean value indicating whether the specified video can be saved to user’s Camera Roll album.

PDF Creation

UIGraphicsBeginPDFContextToData

Creates a PDF-based graphics context that targets the specified mutable data object.

UIGraphicsBeginPDFContextToFile

Creates a PDF-based graphics context that targets a file at the specified path.

UIGraphicsEndPDFContext

Closes a PDF graphics context and pops it from the current context stack.

UIGraphicsBeginPDFPage

Marks the beginning of a new page in a PDF context and configures it using default values.

UIGraphicsBeginPDFPageWithInfo

Marks the beginning of a new page in a PDF context and configures it using the specified values.

UIGraphicsGetPDFContextBounds

Returns the current page bounds.

UIGraphicsAddPDFContextDestinationAtPoint

Creates a jump destination in the current page.

UIGraphicsSetPDFContextDestinationForRect

Links a rectangle on the current page to the specified jump destination.

UIGraphicsSetPDFContextURLForRect

Links a rectangle on the current page to the specified URL.

PDF Screenshots

UIScreenshotService

An object that coordinates the creation of PDF screenshots of your window's content.

See Also

Graphics, Drawing, and Printing

Drawing

Configure your app's drawing environment using colors, renderers, draw paths, strings, and shadows.

Printing

Display the system print panels and manage the printing process.