init(frequencies:palette:)

    Creates a palette histogram.

    PNG.Histogram.swift:32
    init(frequencies: [UInt16], palette: PNG.Palette)

    Parameters

    frequencies

    The frequency of each palette entry in the image. The ith frequency value corresponds to the ith palette entry. This array must have the the exact same number of elements as entries in the image palette. Passing an array of the wrong length will result in a precondition failure.

    palette

    The image palette this histogram provides frequency information for.

    This initializer validates the background information against the given image palette.

    Other members in extension

    Type members

    Instance members