Exemple #1
0
 //--------------------------------------------------------------------------------------
 private void tsbCreateProjection_Click(object sender, EventArgs e)
 {
     try
     {
         int      lScale       = Convert.ToInt32(txtScale.Text);
         Bitmap[] lProjections = CProximityColor.CreateProjection(pbSource.Image as Bitmap, lScale);
         pbProjXY.Image = lProjections[0];
         pbProjXZ.Image = lProjections[1];
         pbProjYZ.Image = lProjections[2];
     }
     catch (Exception ee)
     {
         MessageBox.Show(ee.ToString());
     }
 }
Exemple #2
0
 //--------------------------------------------------------------------------------------
 private void tsbCreateProjectionForTarget_Click(object sender, EventArgs e)
 {
     try
     {
         Bitmap lImage = pbTarget.Image as Bitmap;
         if (lImage != null)
         {
             int      lScale       = Convert.ToInt32(txtScale.Text);
             Bitmap[] lProjections = CProximityColor.CreateProjection(lImage, lScale);
             pbProjXY.Image = lProjections[0];
             pbProjXZ.Image = lProjections[1];
             pbProjYZ.Image = lProjections[2];
         }
     }
     catch (Exception ee)
     {
         MessageBox.Show(ee.ToString());
     }
 }