MCPcopy
hub / github.com/anthonynsimon/bild / RGBAImageEqual

Function RGBAImageEqual

util/util.go:101–103  ·  view source on GitHub ↗

RGBAImageEqual returns true if the parameter images a and b match or false if otherwise.

(a, b *image.RGBA)

Source from the content-addressed store, hash-verified

99// RGBAImageEqual returns true if the parameter images a and b match
100// or false if otherwise.
101func RGBAImageEqual(a, b *image.RGBA) bool {
102 return RGBAImageApproxEqual(a, b, 0)
103}
104
105// RGBAImageApproxEqual returns true if all pixel channel values in images a and b
106// differ by at most the given tolerance, or false otherwise.

Callers 15

TestFloodFillFunction · 0.92
TestNormalFunction · 0.92
TestAddFunction · 0.92
TestMultiplyFunction · 0.92
TestOverlayFunction · 0.92
TestSoftLightFunction · 0.92
TestScreenFunction · 0.92
TestDifferenceFunction · 0.92
TestDivideFunction · 0.92
TestColorBurnFunction · 0.92
TestExclusionFunction · 0.92
TestColorDodgeFunction · 0.92

Calls 1

RGBAImageApproxEqualFunction · 0.85

Tested by 15

TestFloodFillFunction · 0.74
TestNormalFunction · 0.74
TestAddFunction · 0.74
TestMultiplyFunction · 0.74
TestOverlayFunction · 0.74
TestSoftLightFunction · 0.74
TestScreenFunction · 0.74
TestDifferenceFunction · 0.74
TestDivideFunction · 0.74
TestColorBurnFunction · 0.74
TestExclusionFunction · 0.74
TestColorDodgeFunction · 0.74