public static int InitializeMandelbrotProvider()
        {
            bitmap = new int[DefaultWidth * DefaultHeight];

            MandelbrotCore.InitializeMandelbrotCore();

            return(0);
        }
        public static int[] DrawMandelbrotSet(int shift)
        {
            var rmin = MandelbrotCore.rmin - .002 * (double)shift;
            var rmax = MandelbrotCore.rmax + .002 * (double)shift;
            var imin = MandelbrotCore.imin - .002 * (double)shift;
            var imax = MandelbrotCore.imax + .002 * (double)shift;

            MandelbrotCore.DrawMandelbrotSet(bitmap, rmin, rmax, imin, imax, DefaultWidth, DefaultHeight);

            return(bitmap);
        }