[cairo] Crop a picture/surface

Nguyen Vu Hung vuhung16plus at gmail.com
Thu Nov 22 00:18:23 PST 2007


Hi all,

To crop an image, currently I have to pass a surface from cairo to
GraphicsMagick and use GM's crop() method to crop it.

For example, GM's crop can be used to crop a 300x500 pixel sub-picture
from a 600x800 picture.

I wonder if this can be done with cairo? If we can, then how?

-- 
Best Regards,
Nguyen Hung Vu
vuhung16plus{remove}@gmail.dot.com
An inquisitive look at Harajuku
http://www.flickr.com/photos/vuhung/sets/72157600109218238/


More information about the cairo mailing list