예제 #1
0
        public double InRangeFactor(Color color)
        {
            double result = 1.0;

            result *= RedRange?.InRangeFactor(color.Red) ?? 1;
            result *= GreenRange?.InRangeFactor(color.Green) ?? 1;
            result *= BlueRange?.InRangeFactor(color.Blue) ?? 1;
            result *= LightnessRange?.InRangeFactor(color.Lightness) ?? 1;
            result *= SaturationRange?.InRangeFactor(color.Saturation) ?? 1;
            result *= HueRange?.InRangeFactor(color.Hue) ?? 1;
            result *= ValueRange?.InRangeFactor(color.Value) ?? 1;
            result *= BrightnessRange?.InRangeFactor(color.GetBrightness()) ?? 1;
            return(result);
        }
예제 #2
0
 public void HueSaturation(HueRange hue_range,
     double hue_offset,
     double lightness,
     double saturation)
 {
     if (!gimp_hue_saturation(ID, hue_range, hue_offset,
                        lightness, saturation))
     {
       throw new GimpSharpException();
     }
 }
예제 #3
0
 static extern bool gimp_hue_saturation(Int32 drawable_ID,
     HueRange hue_range,
     double hue_offset,
     double lightness,
     double saturation);