Beispiel #1
0
 private void showColourMapsToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     if (PlotterFunctions.colourMaps != null)
     {
         int count = 0;
         foreach (Bitmap colmap in PlotterFunctions.colourMaps)
         {
             FormColMap frmclmap = new FormColMap();
             if (PlotterFunctions.coloursInv.ContainsKey(PlotterFunctions.compcol[count]))
             {
                 frmclmap.Text = PlotterFunctions.coloursInv[PlotterFunctions.compcol[count]];
             }
             else
             {
                 frmclmap.Text = "White";
             }
             frmclmap.showImage(colmap);
             frmclmap.Show();
             count++;
         }
     }
     else
     {
         MessageBox.Show("Colour maps not generated", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Beispiel #2
0
 private void previewEdgeAndFillingMapsToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     if (PlotterFunctions.patternMaps != null)
     {
         for (int i = 0; i < ((PlotterFunctions.patternMaps.Length / 2)); i++)
         {
             FormColMap frmclmap  = new FormColMap();
             FormColMap frmclmap2 = new FormColMap();
             frmclmap.Text  = PlotterFunctions.coloursInv[PlotterFunctions.compcol[i]] + " Outline";
             frmclmap2.Text = PlotterFunctions.coloursInv[PlotterFunctions.compcol[i]] + " Filling";
             frmclmap.showImage(PlotterFunctions.patternMaps[i, 0]);
             frmclmap2.showImage(PlotterFunctions.patternMaps[i, 1]);
             frmclmap.Show();
             frmclmap2.Show();
         }
     }
     else
     {
         MessageBox.Show("Pattern maps not generated", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }