ImportableFormatter

private protocol ImportableFormatter

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

  • Creates a gdImagePtr from given image data.

    Throws

    GDError if import failed.

    Declaration

    Swift

    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.