//-------------------------------------------------------------------------------------- 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()); } }
//-------------------------------------------------------------------------------------- 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()); } }