hep: go-hep.org/x/hep/hplot/cmpimg Index | Files

package cmpimg

import "go-hep.org/x/hep/hplot/cmpimg"

Package cmpimg compares the raw representation of images taking into account idiosyncracies related to their underlying format (SVG, PDF, PNG, ...).

Index

Package Files

cmpimg.go

func Equal Uses

func Equal(typ string, raw1, raw2 []byte) (bool, error)

Equal takes the raw representation of two images, raw1 and raw2, together with the underlying image type ("eps", "jpeg", "jpg", "pdf", "png", "svg", "tiff"), and returns whether the two images are equal or not.

Equal may return an error if the decoding of the raw image somehow failed.

Package cmpimg imports 9 packages (graph). Updated 2018-11-18. Refresh now. Tools for package owners.