Пример #1
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);
            }
        }
Пример #2
0
        /// <summary>
        /// Index of the list changed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void listBoxPersonsFound_SelectedIndexChanged(object sender, EventArgs e)
        {
            ListBox listbox = sender as ListBox;

            if (listbox != null)
            {
                Face f = listbox.SelectedItem as Face;
                if (f != null)
                {
                    _FaceVisualiser.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);
             }
        }