[Gimp-developer] about gimp_rgb_to_hsl and gimp_colorize
- From: hejian <hejian he gmail com>
- To: gimp-developer <gimp-developer-list gnome org>
- Subject: [Gimp-developer] about gimp_rgb_to_hsl and gimp_colorize
- Date: Wed, 06 Jun 2012 12:57:54 +0800
I am trying to write a plugin, this is the code snippet:
GimpHSL hsl;
gimp_rgb_to_hsl (&rbvals.color, &hsl);
gimp_colorize(drawable->drawable_id, hsl.h, hsl.s, hsl.l);
It will got this error:
Calling error for procedure 'gimp-colorize':
Procedure 'gimp-colorize' has been called with value '-1.000000' for
argument 'hue' (#2, type gdouble). This value is out of range.
any suggestion is appreciated.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]