|
NAMEGtk2::Gdk::Pixbuf::Draw::Cache - Cache for drawing scaled pixbufsDESCRIPTIONGtk2::Gdk::Pixbuf::Draw::Cache provides a cache that should be used by the Gtk2::ImageView::Tool when redrawing the Gtk2::ImageView.HIERARCHYGlib::Boxed +----Gtk2::Gdk::Pixbuf::Draw::Cache METHODScache = Gtk2::Gdk::Pixbuf::Draw::Cache->newReturns a new pixbuf draw cache.$cache->draw ($opts, $drawable)
Redraws the area specified in the pixbuf draw options in an efficient way by using caching.
$cache->freeDeallocates a pixbuf draw cache and all its data.$cache->invalidateForce the pixbuf draw cache to scale the pixbuf at the next draw.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. method = Gtk2::Gdk::Pixbuf::Draw::Cache->get_method ($old, $new)
Gets the fastest method to draw the specified draw options. old is assumed to be the last PixbufDrawOpts used and new is the one to use this time. ENUMS AND FLAGSenum Gtk2::Gdk::Pixbuf::Draw::Method
SEE ALSOGtk2::ImageView, Glib::BoxedCOPYRIGHTCopyright (C) 2007 by Jeffrey Ratcliffe.This software is licensed under the GPL-3; see Gtk2::ImageView for a full notice.
Visit the GSP FreeBSD Man Page Interface. |