Permalink
Browse files

beautify: add the soft effect.

  • Loading branch information...
1 parent 007ad38 commit 0cc436749b87c5105a5217056ef32c2574465a0c @hejiann committed Aug 2, 2012
Showing with 21 additions and 1 deletion.
  1. +1 −0 README
  2. +15 −0 beautify-effect.c
  3. +1 −1 beautify-effect.h
  4. +4 −0 beautify.c
View
1 README
@@ -49,6 +49,7 @@ CHANGELOG
2012-08-02:
beautify: add the relief effect.
+beautify: add the soft effect.
2012-08-01:
Make 0.5.2 release.
View
@@ -106,8 +106,23 @@ run_effect (gint32 image_ID, BeautifyEffectType effect)
GIMP_PDB_INT32, 50,
GIMP_PDB_END);
gimp_destroy_params (return_vals, nreturn_vals);
+ break;
}
+ case BEAUTIFY_EFFECT_SOFT:
+ {
+ gint nreturn_vals;
+ GimpParam *return_vals = gimp_run_procedure ("plug-in-gauss",
+ &nreturn_vals,
+ GIMP_PDB_INT32, 1,
+ GIMP_PDB_IMAGE, image_ID,
+ GIMP_PDB_DRAWABLE, effect_layer,
+ GIMP_PDB_FLOAT, 1.0,
+ GIMP_PDB_FLOAT, 1.0,
+ GIMP_PDB_INT32, 1,
+ GIMP_PDB_END);
+ gimp_destroy_params (return_vals, nreturn_vals);
break;
+ }
case BEAUTIFY_EFFECT_STRONG_CONTRAST:
{
guint8 red_pts[] = {
View
@@ -21,7 +21,7 @@ typedef enum
BEAUTIFY_EFFECT_SOFT_LIGHT,
BEAUTIFY_EFFECT_WARM,
BEAUTIFY_EFFECT_SHARPEN,
- BEAUTIFY_EFFECT_SOFT, // TODO
+ BEAUTIFY_EFFECT_SOFT,
BEAUTIFY_EFFECT_REMOVE_FOG, // TODO
BEAUTIFY_EFFECT_STRONG_CONTRAST,
BEAUTIFY_EFFECT_SMART_COLOR,
View
@@ -47,6 +47,7 @@ static const BeautifyEffectType basic_effects[] =
BEAUTIFY_EFFECT_SOFT_LIGHT,
BEAUTIFY_EFFECT_WARM,
BEAUTIFY_EFFECT_SHARPEN,
+ BEAUTIFY_EFFECT_SOFT,
BEAUTIFY_EFFECT_STRONG_CONTRAST,
BEAUTIFY_EFFECT_SMART_COLOR,
BEAUTIFY_EFFECT_BLACK_AND_WHITE,
@@ -932,6 +933,9 @@ effect_icon_new (BeautifyEffectType effect)
case BEAUTIFY_EFFECT_SHARPEN:
title = "Sharpen";
break;
+ case BEAUTIFY_EFFECT_SOFT:
+ title = "Soft";
+ break;
case BEAUTIFY_EFFECT_STRONG_CONTRAST:
title = "Strong\nContrast";
break;

0 comments on commit 0cc4367

Please sign in to comment.