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

            pm.NewPhotoEdit();
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        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()));
        }