~ubuntu-branches/ubuntu/oneiric/inkscape/oneiric-updates

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/extension/internal/bitmap/normalize.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

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 xmlns=\"" INKSCAPE_EXTENSION_URI "\">\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 */