Get pixel value on Gdk::Pixbuf, Set pixel value with Gdk::Cairo
问题 I'm using a Gdk::Pixbuf to display an image with Gdk::Cairo in C++ : virtual bool on_draw(const Cairo::RefPtr<Cairo::Context>& cr) { Glib::RefPtr<Gdk::Pixbuf> image = Gdk::Pixbuf::create_from_file(filename); Gdk::Cairo::set_source_pixbuf(cr, image, (width - image->get_width())/2, (height - image->get_height())/2); cr->paint(); /* other displaying stuffs */ } This image is in B&W and I need to bring out some pixels whose luminance is above a certain threshold. For that, I would like to color