Collection
extension Collection where Element: ImportableFormatter
-
Creates a
gdImagePtr
from given image data.Throws
GDError
if import failed.Declaration
Swift
fileprivate func imagePtr(of data: Data) throws -> gdImagePtr
Parameters
data
The image data of which an image should be instantiated.
Return Value
The
gdImagePtr
of the instantiated image.