Beispiel #1
0
        /// <summary>
        /// [Português]
        /// Evento MouseUp do pbGridPicture.
        /// <para></para>
        /// [English]
        /// PbGridPicture the MouseUp event.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void pbGridPicture_MouseUp(object sender, MouseEventArgs e)
        {
            if (!gradeOk)
            {
                gradeOk = true;
                grid = new Bitmap(original);

                if (radioAutomatica.Checked)
                {
                    if (_selectionBox == null)
                    {
                        _selectionBox = new UserRect(new Rectangle(this._middle - 50, 200, 100, 100));
                        _selectionBox.SetPictureBox(this.pbGridPicture);
                        pbGridPicture.Refresh();
                    }

                    btnPointIdentification.Enabled = true;
                    lblMessage.Text = "Alinhe o quadro de seleção delimitando a altura do paciente e clique em" + System.Environment.NewLine.ToString() + "Identificar pontos.";
                }
                else
                {
                    lblMessage.Text = "Marque os pontos necessários para a avaliação postural.";
                }

            }
        }
Beispiel #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            imgFundo = new Bitmap("E:\\Felipe\\Faculdade\\TCC\\img\\Felipe\\Fundo.jpg");
            imgPaciente = new Bitmap("E:\\Felipe\\Faculdade\\TCC\\img\\Felipe\\Posterior.jpg");

            imgTratada = new Bitmap(util.ProcessImage(imgPaciente, imgFundo));
            pictureBox2.Image = imgPaciente;

            rect = new UserRect(new Rectangle(10, 10, 100, 100));
            rect.SetPictureBox(this.pictureBox2);
        }