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)
| 30 | // |
| 31 | // Equal may return an error if the decoding of the raw image somehow failed. |
| 32 | func 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"), |