[cairo] 'copyArea' in cairo?

Thomas Dybdahl Ahle lobais at gmail.com
Tue Dec 25 02:38:03 PST 2007


Hey,

In java you can use the copyArea method to copy an "area of a component"
in some direction on the component.
http://java.sun.com/javase/6/docs/api/java/awt/Graphics.html#copyArea(int,%20int,%20int,%20int,%20int,%20int)

This is useful when you do stuff like graphs, where you might want to
move what's already painted a pixel to the left, and then only draw a
single new pixel column.

Can cairo do something equivalent? Or do I need an offscreen surface?

-- 
Med venlig hilsen,
Best regards,
Thomas



More information about the cairo mailing list