Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

BlackoutEditor.cs

/*
 * BlackoutEditor.cs
 *
 * Author(s)
 *    Brian J. Murrell <brian@interlinx.bc.ca>
 *
 * This is free software. See COPYING for details.
 */

using FSpot;
using FSpot.Editors;
using Gdk;
using Gtk;
using Mono.Unix;

namespace FSpot.Addins.Editors {
      class BlackoutEditor : Editor {
            public BlackoutEditor () : base (Catalog.GetString ("Blackout"), null) {
                  CanHandleMultiple = false;
                  NeedsSelection = true;
            }

            public override Widget ConfigurationWidget () {
                  VBox vbox = new VBox ();

                  Label info = new Label (Catalog.GetString ("Select the area that you want blacked out."));

                  vbox.Add (info);

                  return vbox;
            }

            protected override Pixbuf Process (Pixbuf input, Cms.Profile input_profile) {
                  Pixbuf output = input.Copy ();

                  Pixbuf sub = new Pixbuf (output, State.Selection.X, State.Selection.Y,
                              State.Selection.Width, State.Selection.Height);
                  sub.Fill (0x00000000);
                  return output;
            }
      }
}

Generated by  Doxygen 1.6.0   Back to index