Esempio n. 1
0
        private void generateMosaic()
        {
            int pixelSize;

            int.TryParse(textBoxPixelSize.Text, out pixelSize);
            if (pixelSize <= 0 || pixelSize > 50)
            {
                MessageBox.Show("Image size is not in the range (1-50)");
            }
            else
            {
                m_Mosaic.GenerateMosaicFromList(m_Bitmaps, pixelSize);
                pictureBoxMosaic.Image = m_Mosaic.ImageMosaic;
            }
        }