Exemplo n.º 1
0
        public cImage(cImage Source)
        {
            this.NumChannels = Source.NumChannels;
            this.Width = Source.Width;
            this.Height = Source.Height;
            this.Depth = Source.Depth;

            this.Data = new float[Source.NumChannels][];
            for (int IdxChannel = 0; IdxChannel < NumChannels; IdxChannel++)
                this.Data[IdxChannel] = new float[Source.Width * Source.Height * Source.Depth];
        }
Exemplo n.º 2
0
        private void testImageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog CurrOpenFileDialog = new OpenFileDialog();

            CurrOpenFileDialog.Filter = "Tif files (*.tif)|*.tif";

            DialogResult Res = CurrOpenFileDialog.ShowDialog();
            if (Res != DialogResult.OK) return;

            cImage NewIm = new cImage(CurrOpenFileDialog.FileName);

            cImageViewer NewView = new cImageViewer();
            NewView.SetImage(NewIm);
            NewView.AddNotation(new ObjectForNotations.cString("This is a test", new Point(100, 100), Color.Red, 20));

            for (int Idx = 0; Idx < 120; Idx += 10)
                NewView.AddNotation(new ObjectForNotations.cDisk(new Point(Idx * 10, Idx * 10), Color.FromArgb(Idx, Idx, 50), Idx));

            GlobalInfo.DisplayViewer(NewView);
        }
Exemplo n.º 3
0
 public void SetImage(cImage Image)
 {
     this.AssociatedImage = Image;
     this.Text = Image.Name;
 }