Exemple #1
0
        public static void CreateCloudWhithSmallRectangles(string applicationDirectory, string fileName)
        {
            var height = 500;
            var width  = 500;
            var center = new Point(width / 2, height / 2);
            var cloud  = new CircularCloudLayouter(center, width, height, 0.00001, 1);


            for (int i = 0; i < 400; i++)
            {
                cloud.PutNextRectangle(new Size(5, 2));
            }

            var filePathToOpen = Path.Combine(applicationDirectory, fileName);

            cloud.CreateBitmap(filePathToOpen);
        }