How do I find whether two Gdk::pixbufs are equal or not (I mean comparing it pixel by pixel)?
The normal == operator does not work , it instead validates that the two pointers are pointing to the same instance , the description says:
bool Glib::RefPtr<Gdk::Pixbuf>::operator==(const Glib::RefPtr<Gdk::Pixbuf> &src) const noexcept
Tests whether the RefPtr<> point to the same underlying instance.
The code:
if(original_image == Gdk::Pixbuf::create_from_file(file)){
return false;
}else{
return true;
}