Пример #1
0
        void Process()
        {
            // here is the core of the meta component ...
            // just a list of Component steps

            MyImageViewer = new cViewerImage();
            MyImageViewer.SetInputData(this.Input);
            MyImageViewer.ListLinearMaxColor = this.ListLinearMaxColor;

            MyImageViewer.IsDisplayScale = this.IsDisplayScale;
            MyImageViewer.IsUseSavedDefaultDisplayProperties = this.IsUseSavedDefaultDisplayProperties;
            MyImageViewer.DefaultZoom = this.DefaultZoom;
            this.Title = this.Input.Name;

            MyImageViewer.Run();

            cDesignerSinglePanel MyDesigner = new cDesignerSinglePanel();
            MyDesigner.SetInputData(MyImageViewer.GetOutPut());
            MyDesigner.Run();

            cDisplayToWindow MyDisplay = new cDisplayToWindow();
            MyDisplay.SetInputData(MyImageViewer.GetOutPut());
            MyDisplay.Title = this.Title;

            MyImageViewer.IP.Resize-= new EventHandler(MyImageViewer.IP.panelForImage_Resize);
            MyDisplay.Run();
            MyImageViewer.IP.Resize += new EventHandler(MyImageViewer.IP.panelForImage_Resize);
            MyDisplay.Display();
        }
Пример #2
0
        private void ToolStripMenuItem_DisplayAsImage(object sender, EventArgs e)
        {
            cConvertToImage CI = new cConvertToImage();
            CI.SetInputData(this.Input);
            CI.Run();

            cViewerImage VI = new cViewerImage();
            VI.SetInputData(CI.GetOutPut());
            VI.Run();
        }
Пример #3
0
        public cExtendedControl BuildChartForImage()
        {
            // Panel TmpPanel = new Panel();
            int Field = 0;

            cViewerImage MyImageViewer = new cViewerImage();

            cGetImageFromWells GIFW = new cGetImageFromWells();
            GIFW.SetInputData(new cListWells(this));
            if(!GIFW.Run().IsSucceed) return null;

            MyImageViewer.SetInputData(GIFW.GetOutPut());

            MyImageViewer.Run();

            int GutterSize = (int)cGlobalInfo.OptionsWindow.FFAllOptions.numericUpDownGutter.Value;

            MyImageViewer.GetOutPut().Location = new System.Drawing.Point(
                                        (int)((PosX - 1) * (cGlobalInfo.SizeHistoWidth + GutterSize) + cGlobalInfo.SizeHistoWidth),
                                        (int)((PosY - 1) * (cGlobalInfo.SizeHistoHeight + GutterSize) + cGlobalInfo.SizeHistoHeight));
            MyImageViewer.GetOutPut().BackColor = this.GetClassColor();//cGlobalInfo.ListClasses[this.ClassForClassif].ColourForDisplay;// CurrentColor;
            MyImageViewer.GetOutPut().Width = (int)cGlobalInfo.SizeHistoWidth;
            MyImageViewer.GetOutPut().Height = (int)cGlobalInfo.SizeHistoHeight;

            //PictureBox PB = new PictureBox();
            //PB.Width = (int)cGlobalInfo.SizeHistoWidth-4;
            //PB.Height = (int)cGlobalInfo.SizeHistoHeight-4;
            //PB.Location = new Point(2, 2);
            //PB.BackColor = this.GetClassColor();

            //PB.BorderStyle = BorderStyle.None;
            //PB.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;

            //PB.MouseClick += new System.Windows.Forms.MouseEventHandler(this.AssociatedChart_MouseClick);
            //PB.MouseDown += new MouseEventHandler(AssociatedChart_MouseDown);
            //PB.AllowDrop = true;
            //PB.DragDrop += new DragEventHandler(AssociatedChart_DragDrop);
            //PB.DragEnter += new DragEventHandler(AssociatedChart_DragEnter);

            if (this.Thumbnail == null)
            {
                cGetImageFromWells GIFWT = new cGetImageFromWells();
                GIFWT.SetInputData(new cListWells(this));
                if (!GIFWT.Run().IsSucceed) return null;

                this.Thumbnail = GIFWT.GetOutPut().GetBitmap(1, null, null);
            }
              //  PB.Image = this.Thumbnail;

               // TmpPanel.Controls.Add(PB);

            //TmpPanel.
            //.GetToolTipText += new System.EventHandler<ToolTipEventArgs>(this.AssociatedChart_GetToolTipText);

            return MyImageViewer.GetOutPut();
        }