Contents

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