ImportableFormatter
private protocol ImportableFormatter
Defines a formatter to be used on import (from data/file to gdImage) conversions
-
Creates a
gdImagePtrfrom given image data.Throws
GDErrorif import failed.Declaration
Swift
func imagePtr(of data: Data) throws -> gdImagePtrParameters
dataThe image data of which an image should be instantiated.
Return Value
The
gdImagePtrof the instantiated image.
View on GitHub