LibGdParametrizableExportFormatter
private protocol LibGdParametrizableExportFormatter : ExportableFormatter
Defines a formatter to be used on one of libgd built-in format with parametrizable export conversions
-
The parameters to apply on exports
Declaration
Swift
var exportParameters: Int32 { get } -
Function pointer to one of libgd’s build in image export functions
Declaration
Swift
var exportFunction: (_ im: gdImagePtr, _ size: UnsafeMutablePointer<Int32>, _ parameters: Int32) -> UnsafeMutableRawPointer? { get }
-
data(of:Extension method) Creates a data representation of given
gdImagePtr.Throws
GDErrorif export failed.Declaration
Swift
fileprivate func data(of imagePtr: gdImagePtr) throws -> DataParameters
imagePtrThe
gdImagePtrof which a data representation should be instantiated.Return Value
The (raw)
Dataof the image
View on GitHub