public static void TestBordersGeneration()
        {
            Bitmap bitmap = new Bitmap(Properties.Resources.provinces);

            Border.ProvinceBorders borders = Border.ProvinceBorders.GetProvinceBorders(bitmap, 3600);
            bitmap.Dispose();
        }
Beispiel #2
0
        public static ProvinceBorders GetProvinceBorders(Bitmap bitmap, int provinceCount)
        {
#if DISABLESINGLETON
            _mInstance = new ProvinceBorders(provinceCount);
            _mInstance.GenerateBordersPaths(bitmap);
            return(_mInstance);
#else
            if (_mInstance == null)
            {
                _mInstance = new ProvinceBorders(provinceCount);
                _mInstance.GenerateBordersPaths(bitmap);
            }
            return(_mInstance);
#endif
        }