Logo Search packages:      
Sourcecode: adesklets version File versions

void imlib_modify_color_modifier_brightness ( double  brightness_value  ) 

Parameters:
brightness_value Value of brightness.
Modifies the current color modifier by adjusting the brightness by the value brightness_value. The color modifier is modified not set, so calling this repeatedly has cumulative effects. brightness values of 0 do not affect anything. -1.0 will make things completely black and 1.0 will make things all white. Values in-between vary brightness linearly.

Definition at line 4214 of file imlib2.c.

{
   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER("imlib_modify_color_modifier_brightness",
                       "color_modifier", ctx->color_modifier);
   __imlib_CmodModBrightness((ImlibColorModifier *) ctx->color_modifier,
                             brightness_value);
}


Generated by  Doxygen 1.6.0   Back to index