/*
* Copyright (C) 2011 Authors:
* Nicolas Dufour <nicoduf@yahoo.fr>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "2geom/transforms.h"
#include "crop.h"
#include "selection-chemistry.h"
#include "sp-item-transform.h"
#include <Magick++.h>
namespace Inkscape {
namespace Extension {
namespace Internal {
namespace Bitmap {
void
}
}
void
// Scale bbox
//g_warning("bbox. W:%f, H:%f, X:%f, Y:%f", bbox->dimensions()[Geom::X], bbox->dimensions()[Geom::Y], bbox->min()[Geom::X], bbox->min()[Geom::Y]);
translate = Geom::Translate(((_left - _right) / 2.0) * (bbox->dimensions()[Geom::X] / (double) image->columns()),
}
void
}
#include "../clear-n_.h"
void
{
"<id>org.inkscape.effect.bitmap.crop</id>\n"
"<param name=\"top\" gui-text=\"" N_("Top (px):") "\" type=\"int\" min=\"0\" max=\"100000\">0</param>\n"
"<param name=\"bottom\" gui-text=\"" N_("Bottom (px):") "\" type=\"int\" min=\"0\" max=\"100000\">0</param>\n"
"<param name=\"left\" gui-text=\"" N_("Left (px):") "\" type=\"int\" min=\"0\" max=\"100000\">0</param>\n"
"<param name=\"right\" gui-text=\"" N_("Right (px):") "\" type=\"int\" min=\"0\" max=\"100000\">0</param>\n"
"<effect>\n"
"<object-type>all</object-type>\n"
"<effects-menu>\n"
"</effects-menu>\n"
"</effect>\n"
"</inkscape-extension>\n", new Crop());
}
}; /* namespace Bitmap */
}; /* namespace Internal */
}; /* namespace Extension */
}; /* namespace Inkscape */