private void buttonPaste_Click(object sender, RoutedEventArgs e)
        {
            ClearActiveAll();
            CameraTestDesktop d = CameraTestDesktop.getDesktop();

            if (d.getClip() == null)
            {
                return;
            }
            ProcessImageCanvas.setPhoto(WriteableBitmapHelper.Clone(d.getClip()));
            if (PhotoOperate != null)
            {
                PhotoOperate("Paste", ProcessImageCanvas.getPhoto());
            }
        }
        private void buttonPaste_Click(object sender, RoutedEventArgs e)
        {
            if (lcp == null)
            {
                SilverlightLFC.common.Environment.ShowMessage("未将按钮和测试对象关联!"); return;
            }
            ClearActiveAll();
            CameraTestDesktop d  = CameraTestDesktop.getDesktop();
            WriteableBitmap   wb = d.getClip();

            if (wb == null)
            {
                return;
            }
            lcp.setPhoto(wb);
            if (addPhoto != null)
            {
                addPhoto(wb);
            }
            if (PhotoOperate != null)
            {
                PhotoOperate("Paste", wb);
            }
        }
Esempio n. 3
0
        private void buttonPaste_Click(object sender, RoutedEventArgs e)
        {
            CameraTestDesktop d = CameraTestDesktop.getDesktop();

            lc.setPhoto(d.getClip());
        }
Esempio n. 4
0
        public static WriteableBitmap Paste()
        {
            CameraTestDesktop d = CameraTestDesktop.getDesktop();

            return(d.getClip());
        }