Renders the image and exports the resulting image data in PNG format.
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+Beta
- tvOS 11.0+
The image object to render.
The pixel format for the output image.
No options keys are supported at this time.
A data representation of the rendered image in PNG format, or
nil if the image could not be rendered.
To render an image for export, the image’s contents must not be empty and its
extent dimensions must be finite. To export after applying a filter whose output has infinite extent, see the
Rendering Images for Data or File Export
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software