init(parsing:standard:)

    Creates an image header by parsing the given chunk data, interpreting it according to the given PNG standard.

    PNG.Header.swift:73
    init(parsing data: [UInt8], standard: PNG.Standard) throws

    Parameters

    data

    The contents of an IHDR chunk to parse.

    standard

    Specifies if the header should be interpreted as a standard PNG header, or an iphone-optimized PNG header.

    Other members in extension

    Type members

    Instance members