示例#1
0
 public void setTarget(PhotoEditCanvas p)
 {
     pc = p;
     photoBrightInfor.setTarget(pc);
     photoColorInfor.setTarget(pc);
     photoInfor.setTarget(pc);
 }
示例#2
0
        public void setTarget(PhotoEditCanvas pc)//
        {
            TargetCanvas = pc;

            //img.PointerPressed += new MouseButtonEventHandler(img_PointerPressed);
            //img.PointerReleased += new MouseButtonEventHandler(img_PointerReleased);
        }
示例#3
0
 public void setTarget(PhotoEditCanvas pc)//
 {
     Target = pc;
     //si = img;
     pc.PointerPressed  += img_PointerPressed;
     pc.PointerReleased += img_PointerReleased;
 }
示例#4
0
 public void setTarget(PhotoEditCanvas p)
 {
     pc = p;
     if (p.SelectLayer != null)
     {
         c = p.SelectLayer.getCanvas();
     }
 }
 public void setTarget(PhotoEditCanvas pc)//
 {
     //TargetImage = img;
     Target              = pc;
     pc.PointerPressed  += new PointerEventHandler(img_PointerPressed);
     pc.PointerReleased += new PointerEventHandler(img_PointerReleased);
     pc.PointerMoved    += new PointerEventHandler(img_PointerMoved);
 }
示例#6
0
        public void NewPhotoEdit()//新建
        {
            PhotoEditCanvas pc = new PhotoEditCanvas();

            EditPhotoList.Add(pc);
            ShowPhotoEditWindow(pc);
            //setTarget(pc);
        }
        private void buttonOK_Click(object sender, RoutedEventArgs e)
        {
            Panel           p  = Parent as Panel;
            PhotoEditCanvas pc = new PhotoEditCanvas();

            pc.Width  = lynxUpDownW.IntValue;
            pc.Height = lynxUpDownH.IntValue;
            p.Children.Add(pc);
            p.Children.Remove(this);
        }
示例#8
0
 public void setTarget(PhotoEditCanvas pc)//设置某个编辑图片和操控窗体关联
 {
     WindowPhotoIO.setTarget(pc);
     WindowLayerEdit.setTarget(pc);
     WindowLayerDraw.setTarget(pc);
     WindowLayerManager.setTarget(pc);
     WindowLayerMove.setTarget(pc);
     WindowLayerInfor.setTarget(pc);
     WindowPhotoView.setTarget(pc);
 }
示例#9
0
 public void setTarget(PhotoEditCanvas p)
 {
     pc = p;
     //WriteableBitmap b = pc.SelectLayer.getPhoto();
     //if (b != null)
     //{
     //    textBoxPixH.Text = b.PixelHeight.ToString();
     //    textBoxPixW.Text = b.PixelWidth.ToString();
     //    DrawHis();
     //}
 }
示例#10
0
        public void StartPhotoEdit()
        {
            Panel           p  = CameraTestDesktop.getDesktopPanel();
            PhotoEditCanvas pc = new PhotoEditCanvas();

            pc.Title = "Image Process System";
            p.Children.Add(pc);
            Canvas.SetLeft(pc, (p.ActualWidth - pc.Width) / 2);
            Canvas.SetTop(pc, (p.ActualHeight - pc.Height) / 2);

            ShowPhotoEditWindow(pc);
        }
示例#11
0
        public void ShowPhotoEditWindow(PhotoEditCanvas pc)
        {
            double l, t;//默认编辑是在右侧

            ShowWindow(pc);
            Panel p = CameraTestDesktop.getDesktopPanel();

            Canvas.SetLeft(pc, (p.Width - pc.Width) / 2);
            Canvas.SetTop(pc, (p.Height - pc.Height) / 2);

            l = Canvas.GetLeft(pc);
            t = Canvas.GetTop(pc);

            ShowWindow(WindowLayerEdit);
            WindowLayerEdit.setTarget(pc);
            Canvas.SetLeft(WindowLayerEdit, l + pc.Width);
            Canvas.SetTop(WindowLayerEdit, t);

            ShowWindow(WindowLayerDraw);
            WindowLayerDraw.setTarget(pc);
            Canvas.SetLeft(WindowLayerDraw, l);
            Canvas.SetTop(WindowLayerDraw, t - WindowLayerDraw.Height);

            ShowWindow(WindowPhotoIO);
            WindowPhotoIO.setTarget(pc);
            Canvas.SetLeft(WindowPhotoIO, l);
            Canvas.SetTop(WindowPhotoIO, t - WindowPhotoIO.Height - WindowPhotoIO.Height);

            ShowWindow(WindowLayerManager);
            WindowLayerManager.setTarget(pc);
            Canvas.SetLeft(WindowLayerManager, l - WindowLayerManager.Width);
            Canvas.SetTop(WindowLayerManager, t + 30);

            ShowWindow(WindowLayerMove);
            WindowLayerMove.setTarget(pc);
            Canvas.SetLeft(WindowLayerMove, l + pc.Width);
            Canvas.SetTop(WindowLayerMove, t - WindowPhotoIO.Height - WindowLayerDraw.Height);

            ShowWindow(WindowLayerInfor);
            WindowLayerInfor.setTarget(pc);
            Canvas.SetLeft(WindowLayerInfor, l);
            Canvas.SetTop(WindowLayerInfor, t + pc.Height);

            ShowWindow(WindowPhotoView);
            WindowPhotoView.setTarget(pc);
            Canvas.SetLeft(WindowPhotoView, l + pc.Width);
            Canvas.SetTop(WindowPhotoView, t + pc.Height + 70);
        }
示例#12
0
 public void setTarget(PhotoEditCanvas p)
 {
     pc = p;
     stackLayer.Children.Clear();
     ReadLayers();
 }
示例#13
0
 public void setTarget(PhotoEditCanvas pc)
 {
     p = pc;
 }
示例#14
0
 public void setTarget(PhotoEditCanvas p)
 {
     pc = p;
 }