Exemple #1
0
        override public bool Execute()
        {
            bool nonEmpty;

            Rectangle rectangle = ActiveImage.Selection.Bounds(out nonEmpty);

            if (nonEmpty)
            {
                ActiveDrawable.EditCut();
                ActiveDrawable.EditPaste(false);

                ActiveImage.FloatingSelection.Offsets =
                    new Offset(rectangle.X1, rectangle.Y1);
                Layer layer = ActiveImage.FloatingSelection.ToLayer();
                // Fix me: why can't I use layer here?
                new Layer(ActiveImage.ActiveDrawable).ResizeToImageSize();
            }
            else
            {
                // TODO: what does PS handle this?
            }
            return(true);
        }
Exemple #2
0
 override public bool Execute()
 {
     ActiveDrawable.EditCut();
     return(true);
 }