diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-01-02 11:25:40 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-01-02 11:25:40 +0100 |
commit | cd16e7b4a394b6ce885a618d8a96eccd662208bb (patch) | |
tree | c9bcd713dbea9467783f8d82c63218af91192da1 /src/util/image.vala | |
parent | b1cb72d29fa13b3b6f9f5fe66083dd60930a2b71 (diff) | |
parent | 66f6a7bd3f7e00022191f16cb0e82a39e7333a76 (diff) |
Merge tag 'upstream/0.25.2'
Upstream version 0.25.2
Diffstat (limited to 'src/util/image.vala')
-rw-r--r-- | src/util/image.vala | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/util/image.vala b/src/util/image.vala index db872df..4adafae 100644 --- a/src/util/image.vala +++ b/src/util/image.vala @@ -250,14 +250,6 @@ public void shift_colors(Gdk.Pixbuf pixbuf, int red, int green, int blue, int al } } -public void dim_pixbuf(Gdk.Pixbuf pixbuf) { - PixelTransformer transformer = new PixelTransformer(); - SaturationTransformation sat = new SaturationTransformation(SaturationTransformation.MIN_PARAMETER); - transformer.attach_transformation(sat); - transformer.transform_pixbuf(pixbuf); - shift_colors(pixbuf, 0, 0, 0, -100); -} - bool coord_in_rectangle(int x, int y, Gdk.Rectangle rect) { return (x >= rect.x && x < (rect.x + rect.width) && y >= rect.y && y <= (rect.y + rect.height)); } |