MCPcopy Index your code
hub / github.com/gonum/plot / Equal

Function Equal

cmpimg/cmpimg.go:32–34  ·  view source on GitHub ↗

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.

(typ string, raw1, raw2 []byte)

Source from the content-addressed store, hash-verified

30//
31// Equal may return an error if the decoding of the raw image somehow failed.
32func Equal(typ string, raw1, raw2 []byte) (bool, error) {
33 return EqualApprox(typ, raw1, raw2, 0)
34}
35
36// EqualApprox takes the raw representation of two images, raw1 and raw2,
37// together with the underlying image type ("eps", "jpeg", "jpg", "pdf", "png", "svg", "tiff"),

Callers 10

TestLegendAlignmentFunction · 0.92
TestLineWidthFunction · 0.92
TestIssue179Function · 0.92
TestIssue540Function · 0.92
TestEmbedFontsFunction · 0.92
TestArcFunction · 0.92
TestIssue540Function · 0.92
TestNewWithFunction · 0.92
TestHtmlEscapeFunction · 0.92
TestEqualFunction · 0.85

Calls 1

EqualApproxFunction · 0.85

Tested by 10

TestLegendAlignmentFunction · 0.74
TestLineWidthFunction · 0.74
TestIssue179Function · 0.74
TestIssue540Function · 0.74
TestEmbedFontsFunction · 0.74
TestArcFunction · 0.74
TestIssue540Function · 0.74
TestNewWithFunction · 0.74
TestHtmlEscapeFunction · 0.74
TestEqualFunction · 0.68