LibGdImportableFormatter
private protocol LibGdImportableFormatter : ImportableFormatter
Defines a formatter to be used on one libgd built-in format import conversions
-
Function pointer to one of libgd’s build in image create functions
Declaration
Swift
var importFunction: (_ size: Int32, _ data: UnsafeMutableRawPointer) -> gdImagePtr? { get }
-
imagePtr(of:Extension method) Creates a
gdImagePtrfrom given image data.Throws
GDErrorif import failed.Declaration
Swift
fileprivate 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