Instance Method

imageFromTexture()

Exports the texture data as a CoreGraphics image.

Declaration

func imageFromTexture() -> Unmanaged<CGImage>?

Return Value

A CoreGraphics image object containing the texture’s pixel data, or nil if the texture data cannot be represented using CoreGraphics.

See Also

Exporting Textures

func write(to: URL) -> Bool

Exports the texture data to an image file at the specified URL.

func write(to: URL, type: CFString) -> Bool

Exports the texture data to an image file at the specified URL, of the specified type.

Beta Software

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