コード例 #1
0
ファイル: HueSaturationEffect.cs プロジェクト: deckarep/Pinta
        public override bool LaunchConfiguration()
        {
            HueSaturationData data = new HueSaturationData ();
            SimpleEffectDialog dialog = new SimpleEffectDialog (Text, PintaCore.Resources.GetIcon (Icon), data);

            int response = dialog.Run ();

            if (response == (int)Gtk.ResponseType.Ok) {
                hue_delta = data.Hue;
                sat_delta = data.Saturation;
                lightness = data.Lightness;

                dialog.Destroy ();

                // Don't trigger anything if no options were changed
                return !data.IsDefault;
            }

            dialog.Destroy ();

            return false;
        }
コード例 #2
0
 public HueSaturationEffect()
 {
     EffectData = new HueSaturationData ();
 }