~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to src/extension/internal/bitmap/normalize.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Kees Cook, Ted Gould
  • Date: 2008-02-10 14:20:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080210142016-vcnb2zqyhszu0xvb
Tags: 0.46~pre1-0ubuntu1
[ Kees Cook ]
* debian/control:
  - add libgtkspell-dev build-dep to gain GtkSpell features (LP: #183547).
  - update Standards version (no changes needed).
  - add Vcs and Homepage fields.
  - switch to new python-lxml dep.
* debian/{control,rules}: switch from dpatch to quilt for more sanity.
* debian/patches/20_fix_glib_and_gxx43_ftbfs.patch:
  - merged against upstream fixes.
  - added additional fixes for newly written code.
* debian/rules: enable parallel building.

[ Ted Gould ]
* Updating POTFILES.in to make it so things build correctly.
* debian/control:
  - add ImageMagick++ and libboost-dev to build-deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2007 Authors:
 
3
 *   Christopher Brown <audiere@gmail.com>
 
4
 *   Ted Gould <ted@gould.cx>
 
5
 *   
 
6
 * Released under GNU GPL, read the file 'COPYING' for more information
 
7
 */
 
8
 
 
9
#include "extension/effect.h"
 
10
#include "extension/system.h"
 
11
 
 
12
#include "normalize.h"
 
13
 
 
14
namespace Inkscape {
 
15
namespace Extension {
 
16
namespace Internal {
 
17
namespace Bitmap {
 
18
        
 
19
void
 
20
Normalize::applyEffect(Magick::Image* image) {
 
21
        image->normalize();
 
22
}
 
23
 
 
24
void
 
25
Normalize::refreshParameters(Inkscape::Extension::Effect* module) {     
 
26
}
 
27
 
 
28
#include "../clear-n_.h"
 
29
 
 
30
void
 
31
Normalize::init(void)
 
32
{
 
33
        Inkscape::Extension::build_from_mem(
 
34
                "<inkscape-extension>\n"
 
35
                        "<name>" N_("Normalize") "</name>\n"
 
36
                        "<id>org.inkscape.effect.bitmap.normalize</id>\n"
 
37
                        "<effect>\n"
 
38
                                "<object-type>all</object-type>\n"
 
39
                                "<effects-menu>\n"
 
40
                                        "<submenu name=\"" N_("Raster") "\" />\n"
 
41
                                "</effects-menu>\n"
 
42
                                "<menu-tip>" N_("Normalize selected bitmap(s), expanding color range to the full possible range of color.") "</menu-tip>\n"
 
43
                        "</effect>\n"
 
44
                "</inkscape-extension>\n", new Normalize());
 
45
}
 
46
 
 
47
}; /* namespace Bitmap */
 
48
}; /* namespace Internal */
 
49
}; /* namespace Extension */
 
50
}; /* namespace Inkscape */