Gtk2::Gdk::Pixbuf::Draw::Cache provides a cache that should be used by the Gtk2::ImageView::Tool when redrawing the Gtk2::ImageView.
Gtk2::Gdk::Pixbuf::Draw::Cache tries to minimize the number of scale operations needed by caching the last drawn pixbuf. It would be inefficient to check the individual pixels inside the pixbuf so it assumes that if the memory address of the pixbuf has not changed, then the cache is good to use.
However, when the image data is modified, this assumtion breaks, which is why this method must be used to tell draw cache about it.
To install Gtk2::ImageView, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gtk2::ImageView
CPAN shell
perl -MCPAN -e shell install Gtk2::ImageView
For more information on module installation, please visit the detailed CPAN module installation guide.