X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=image%2Fimage.hpp;h=7e13dd6f490cc97e40e24918e98073b405dcc8c6;hb=25e08d072ae40fffa99b72dab0429c6ed25b19ce;hp=7dd18c1225e821a0286ea11e0a73989be57acc51;hpb=e7102bf755210f9e215fb048b637dda6bab96334;p=apitrace diff --git a/image/image.hpp b/image/image.hpp index 7dd18c1..7e13dd6 100644 --- a/image/image.hpp +++ b/image/image.hpp @@ -106,7 +106,18 @@ public: return writePNG(os); } - double compare(Image &ref); + void + writeRAW(std::ostream &os) const; + + inline bool + writeRAW(const char *filename) const { + std::ofstream os(filename, std::ofstream::binary); + if (!os) { + return false; + } + writeRAW(os); + return true; + } };