ExportableFormatter

private protocol ExportableFormatter

Defines a formatter to be used on export (from gdImage to data/file) conversions

  • Creates a data representation of given gdImagePtr.

    Throws

    GDError if export failed.

    Declaration

    Swift

    func data(of imagePtr: gdImagePtr) throws -> Data

    Parameters

    imagePtr

    The gdImagePtr of which a data representation should be instantiated.

    Return Value

    The (raw) Data of the image