Example #1
0
        /// <summary>
        /// Constructor.  The image provided will be automatically displayed when the form is shown.
        /// </summary>
        /// <param name="image">The image to be displayed when the window is shown.</param>
        public FormImageEdit(SourceImage image)
        {
            InitializeComponent();

            //setup the window and variables
            sourceImage            = image;
            labelFileNameData.Text = sourceImage.name;
            this.Text           += " ( " + sourceImage.name + " ) ";
            sourceImageOrganizer = SourceImageOrganizer.getInstance();

            //setup the ImageBox and the picture it will display
            imageBox1                = new ImageBox();
            imageBox1.Image          = new Image <Bgr, byte>(sourceImage.path);
            imageBox1.SizeMode       = PictureBoxSizeMode.AutoSize;
            imageBox1.FunctionalMode = ImageBox.FunctionalModeOption.Minimum;
            imageBox1.MouseDown     += new MouseEventHandler(imageBox1_MouseDown);
            imageBox1.MouseUp       += new MouseEventHandler(imageBox1_MouseUp);

            //setup the image panel, add the image
            //this is necessary for scroll bars
            panelImagePanel.AutoScroll = true;
            panelImagePanel.Controls.Add(imageBox1);

            showHistogram();
        }
Example #2
0
        /// <summary>
        /// Constructor.  The image provided will be automatically displayed when the form is shown.
        /// </summary>
        /// <param name="image">The image to be displayed when the window is shown.</param>
        public FormImageEdit( SourceImage image )
        {
            InitializeComponent();

            //setup the window and variables
            sourceImage = image;
            labelFileNameData.Text = sourceImage.name;
            this.Text += " ( " + sourceImage.name + " ) ";
            sourceImageOrganizer = SourceImageOrganizer.getInstance();

            //setup the ImageBox and the picture it will display
            imageBox1 = new ImageBox();
            imageBox1.Image = new Image<Bgr, byte>(sourceImage.path);
            imageBox1.SizeMode = PictureBoxSizeMode.AutoSize;
            imageBox1.FunctionalMode = ImageBox.FunctionalModeOption.Minimum;
            imageBox1.MouseDown += new MouseEventHandler(imageBox1_MouseDown);
            imageBox1.MouseUp += new MouseEventHandler(imageBox1_MouseUp);

            //setup the image panel, add the image
            //this is necessary for scroll bars
            panelImagePanel.AutoScroll = true;
            panelImagePanel.Controls.Add(imageBox1);

            showHistogram();
        }
Example #3
0
        public FormImages()
        {
            InitializeComponent();

            sourceImageOrganizer = SourceImageOrganizer.getInstance();

            refreshImageList();
        }
Example #4
0
        public FormImages()
        {
            InitializeComponent();

            sourceImageOrganizer = SourceImageOrganizer.getInstance();

            refreshImageList();
        }
        // Create the TagOrganizer, get read tagtypes and tags
        private TagOrganizer()
        {
            //get instance of TagFactory and SourceImageOrganizer for class
            tagFactory     = TagFactory.getInstance();
            imageOrganizer = SourceImageOrganizer.getInstance();

            //get tagtype and tag lists
            tagTypeList = tagFactory.readTagTypes();
            tagList     = tagFactory.readTags(tagTypeList);
        }
Example #6
0
        // Create the TagOrganizer, get read tagtypes and tags
        private TagOrganizer()
        {
            //get instance of TagFactory and SourceImageOrganizer for class
            tagFactory = TagFactory.getInstance();
            imageOrganizer = SourceImageOrganizer.getInstance();

            //get tagtype and tag lists
            tagTypeList = tagFactory.readTagTypes();
            tagList = tagFactory.readTags( tagTypeList );
        }
Example #7
0
        /// <summary>
        /// Constructor.  This gets instances of necessary classes, gets
        /// lists of tag types and images, and add a closing handler.
        /// </summary>
        public FormImages()
        {
            InitializeComponent();

            //Get instances
            sourceImageOrganizer = SourceImageOrganizer.getInstance();
            tagOrganizer = TagOrganizer.getInstance();

            //Add a handler to make sure that the window doesn't get destroyed when it's closed
            this.FormClosing += new FormClosingEventHandler(FormImages_FormClosing);

            //get tag type and image lists
            refreshTagTypeList();
            refreshImageList();
        }
Example #8
0
        /// <summary>
        /// Constructor.  This gets instances of necessary classes, gets
        /// lists of tag types and images, and add a closing handler.
        /// </summary>
        public FormImages()
        {
            InitializeComponent();

            //Get instances
            sourceImageOrganizer = SourceImageOrganizer.getInstance();
            tagOrganizer         = TagOrganizer.getInstance();

            //Add a handler to make sure that the window doesn't get destroyed when it's closed
            this.FormClosing += new FormClosingEventHandler(FormImages_FormClosing);

            //get tag type and image lists
            refreshTagTypeList();
            refreshImageList();
        }