Ejemplo n.º 1
0
        private void buttonCopy_Click(object sender, RoutedEventArgs e)
        {
            ClearActiveAll();
            //if (ProcessImageCanvas.getPhoto() == null) { return; }
            CameraTestDesktop d = CameraTestDesktop.getDesktop();

            if (ProcessImageCanvas.IsSelect)
            {
                WriteableBitmap selectArea = ProcessImageCanvas.getSelectArea();
                if (selectArea == null)
                {
                    return;
                }
                d.addClip(selectArea);
                if (PhotoOperate != null)
                {
                    PhotoOperate("CopySelect", ProcessImageCanvas.getPhoto());
                }
            }
            else
            {
                SilverlightLFC.common.Environment.ShowMessage("请选择要复制的区域");
            }
            //d.addClip(ProcessImageCanvas.getPhoto());
        }
Ejemplo n.º 2
0
        private void buttonCopy_Click(object sender, RoutedEventArgs e)
        {
            if (lc.getPhoto() == null)
            {
                return;
            }
            CameraTestDesktop d = CameraTestDesktop.getDesktop();

            d.addClip(lc.getPhoto());
        }
Ejemplo n.º 3
0
        private void buttonCopy_Click(object sender, RoutedEventArgs e)
        {
            if (lcp == null)
            {
                SilverlightLFC.common.Environment.ShowMessage("未将按钮和测试对象关联!"); return;
            }
            ClearActiveAll();

            CameraTestDesktop d = CameraTestDesktop.getDesktop();

            d.addClip(lcp.getPhoto());
            if (PhotoOperate != null)
            {
                PhotoOperate("Copy", lcp.getPhoto());
            }
        }
Ejemplo n.º 4
0
        public static void Copy(WriteableBitmap b)
        {
            CameraTestDesktop d = CameraTestDesktop.getDesktop();

            d.addClip(b);
        }