Comment 7 for bug 517082

Revision history for this message
jazzynico (jazzynico) wrote :

Thanks for the tip, Ted.

I've tried your suggestion, and I now have a new overloaded effect() function. The problem is that I need a Magick::Image to get the image size and it's Inkscape::XML::Node in order to tweak the height and size (which is not necessarily exactly the bitmap size, e.g. if the svg object is resized with the object handles). These elements are easily available from an ImageMagickDocCache, but I see no way to use or create one from the overloaded function.

An alternative solution consists in adding the node to the applyEffect function (could be interesting if we add other resizing effects), but it implies that we change all the existing bitmap extensions.

The solution may be obvious, but I'm not a C++ expert, and my last course is far in the past (I'm trying to understand Inkscape's code and learn C++ at the same time...).