Permalink
Browse files

beautify: fix the Black And White effect.

  • Loading branch information...
1 parent 81a3f01 commit 8c90227371c51cb814402f9cd5bed4db2f0c76a1 @hejiann committed Aug 3, 2012
Showing with 38 additions and 13 deletions.
  1. +14 −13 README
  2. +24 −0 beautify-effect.c
View
27 README
@@ -48,32 +48,33 @@ CHANGELOG
===================
2012-08-03:
-beautify: fix the soft light effect.
+beautify: fix the Soft Light effect.
+beautify: fix the Black And White effect.
2012-08-02:
-beautify: add the relief effect.
-beautify: add the soft effect.
+beautify: add the Relief effect.
+beautify: add the Soft effect.
beautify: add the TV Lines effect.
2012-08-01:
Make 0.5.2 release.
Merge rip-border and texture-border into border.
-beautify: add the classic sketch effect.
+beautify: add the Classic Sketch effect.
2012-07-31:
-beautify: fix ABao color effect.
+beautify: fix ABao Color effect.
texture-border: slim the plug-in size by only provide top textures and let other textures can be download.
texture-border: add scrollbar to textures and make the dialog display quickly.
rip-border: slim the plug-in size by only provide top textures and let other textures can be download.
rip-border: add scrollbar to textures and make the dialog display quickly.
-skin whitening: add the little pink effect.
-skin whitening: add the moderate pink effect.
-skin whitening: add the high pink effect.
-skin whitening: add the little flesh effect.
-skin whitening: add the moderate flesh effect.
-skin shitening: add the high flesh effect.
-beautify: add the classic LOMO effect.
-beautify: add the pink purple gradient effect.
+skin whitening: add the Little Pink effect.
+skin whitening: add the Moderate Pink effect.
+skin whitening: add the High Pink effect.
+skin whitening: add the Little Flesh effect.
+skin whitening: add the Moderate Flesh effect.
+skin shitening: add the High Flesh effect.
+beautify: add the Classic LOMO effect.
+beautify: add the Pink Purple Gradient effect.
2012-07-30:
beautify: fix missing effect.
View
@@ -216,8 +216,32 @@ run_effect (gint32 image_ID, BeautifyEffectType effect)
}
break;
case BEAUTIFY_EFFECT_BLACK_AND_WHITE:
+ {
+ gint nreturn_vals;
+ GimpParam *return_vals;
+
+ return_vals = gimp_run_procedure ("plug-in-colors-channel-mixer",
+ &nreturn_vals,
+ GIMP_PDB_INT32, 1,
+ GIMP_PDB_IMAGE, image_ID,
+ GIMP_PDB_DRAWABLE, effect_layer,
+ GIMP_PDB_INT32, 0,
+ GIMP_PDB_FLOAT, 0.30,
+ GIMP_PDB_FLOAT, 0.59,
+ GIMP_PDB_FLOAT, 0.11,
+ GIMP_PDB_FLOAT, 0.30,
+ GIMP_PDB_FLOAT, 0.59,
+ GIMP_PDB_FLOAT, 0.11,
+ GIMP_PDB_FLOAT, 0.30,
+ GIMP_PDB_FLOAT, 0.59,
+ GIMP_PDB_FLOAT, 0.11,
+ GIMP_PDB_END);
+ gimp_destroy_params (return_vals, nreturn_vals);
+
gimp_desaturate_full (effect_layer, GIMP_DESATURATE_LUMINOSITY);
+
break;
+ }
case BEAUTIFY_EFFECT_INVERT:
gimp_invert (effect_layer);
break;

0 comments on commit 8c90227

Please sign in to comment.