示例#1
0
        /// <summary>
        /// Form is being loaded
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FormMain_Load(object sender, EventArgs e)
        {
            // save states
            new WindowProperties(this);

            // Refresh contacts first
            buttonRefreshContacts_Click(sender, e);
            _FaceVisualiser = new FaceToPictureBox(pictureBoxPreview);
            toolStripStatusLabelInfo.Text = "";

            // update the file list settings
            bool onlyChanged = (PicFaceConfig.FileView == PicFaceConfig.FileViewSettings.OnlyChanged);

            allFilesToolStripMenuItem.Checked = !onlyChanged;
            filesWithChangedFaceInformationToolStripMenuItem.Checked = onlyChanged;

#if DEBUG
            //// ###############
            _CurrentDirectory     = @"D:\Users\Christian.CPC\Pictures\Tests";
            textBoxDirectory.Text = _CurrentDirectory;

            ImageInfoList list = new ImageInfoList(ExifToolPictureData.Collect(_CurrentDirectory));

            LoadPictureIndex();
            //// ###############
#endif
        }
示例#2
0
        /// <summary>
        /// Mark the faces on the picture box
        /// </summary>
        /// <param name="picturebox"></param>
        public void MarkFaces(PictureBox picturebox)
        {
            FaceToPictureBox fpb = new FaceToPictureBox(picturebox);

            Pen p = new Pen(Color.Red, 2);

            foreach (Face f in _PicasaFaces.Values)
            {
                fpb.DrawFace(f);
            }
        }
示例#3
0
        /// <summary>
        /// Mark the faces on the picture box
        /// </summary>
        /// <param name="picturebox"></param>
        public void MarkFaces(PictureBox picturebox)
        {
            FaceToPictureBox fpb = new FaceToPictureBox(picturebox);

             Pen p = new Pen(Color.Red, 2);
             foreach (Face f in _PicasaFaces.Values)
             {
            fpb.DrawFace(f);
             }
        }