Example #1
0
        private void buttonNew_Click(object sender, RoutedEventArgs e)
        {
            PhotoAttributeEdit pa = new PhotoAttributeEdit();
            PhotoEditManager   pm = PhotoEditManager.getPhotoEditManager();

            pm.NewPhotoEdit();
        }
 public void Paste()//粘贴
 {
     //CameraTestDesktop d = CameraTestDesktop.getDesktop();
     //PhotoLayer pl = new PhotoLayer();
     //pl.Photo.Source = PhotoEditManager.Paste();
     if (SelectLayer == null)
     {
         return;
     }
     SelectLayer.setPhoto(PhotoEditManager.Paste(), ScalePercent);
 }
        public void Copy()//把图片复制到剪贴板
        {
            //CameraTestDesktop d = CameraTestDesktop.getDesktop();
            if (SelectLayer == null)
            {
                if (PhotoLayers.Children.Count == 0)
                {
                    return;
                }
                SelectLayer = PhotoLayers.Children[0] as PhotoLayer;
            }

            PhotoEditManager.Copy(WriteableBitmapHelper.Clone(SelectLayer.getPhoto()));
        }