[cairo] trim margins off image
domlachowicz at gmail.com
Sun Feb 8 17:40:58 PST 2009
If you're working with a cairo image surface and your ImageMagick code
doesn't change the image's dimensions, it should be possible to use
something like the following Magick++ pseudo-code:
Then manipulate the Image without needing cairo to re-read the data.
On Sun, Feb 8, 2009 at 8:30 PM, Pablo Romero <romero619 at hotmail.com> wrote:
> I need to trim margins off an image surface & resize the entire image, similar to imageMagick's trim & resize functions.
> I need to know if this is at all possible using cairo.
> if not, I also would like to know if it would somehow be possible to use imagemagick/magickwand to manipulate/modify a cairo surface IN MEMORY, without having to write the surface to a temporary (png) file, edit it with magickwand, and then re-read it into cairo...
> Has anyone ever had any success integrating code from both cairo and imagemagick???
> Please help.
> Windows Live™: E-mail. Chat. Share. Get more ways to connect.
> cairo mailing list
> cairo at cairographics.org
Counting bodies like sheep to the rhythm of the war drums.
More information about the cairo