예제 #1
0
        //souradnice mysi pricteme k soucasnym, zvetsenim (podil strany panelu ku strane vyberu) vynasobime nove vznikla cisla a i zoom
        /// <summary>
        /// Consturcts a object that is responsible for counting a Mandelbrot's set 
        /// </summary>
        /// <param name="GDI">device responsible for rendering</param>
        /// <param name="workLoad">the area of the computation</param>
        /// <param name="clientRectangle">the area where the workLoad is situated</param>
        public MandelBrotSet(IMandelBrotCompatible GDI, int screenWidth, int screenHeight, long translateXInNewWorld, long translateYInNewWorld, double zoom, int start, int end)
        {
            this.GDI = GDI;
            localBuffer = new List<MandelBrotPoint>(2 * localBufferCap);

            scrWidth = screenWidth;
            scrHeight = screenHeight;
            translX = translateXInNewWorld;
            translY = translateYInNewWorld;
            this.zoom = zoom;
            this.start = start;
            this.end = end;
        }
예제 #2
0
        //souradnice mysi pricteme k soucasnym, zvetsenim (podil strany panelu ku strane vyberu) vynasobime nove vznikla cisla a i zoom


        /// <summary>
        /// Consturcts a object that is responsible for counting a Mandelbrot's set
        /// </summary>
        /// <param name="GDI">device responsible for rendering</param>
        /// <param name="workLoad">the area of the computation</param>
        /// <param name="clientRectangle">the area where the workLoad is situated</param>
        public MandelBrotSet(IMandelBrotCompatible GDI, int screenWidth, int screenHeight, long translateXInNewWorld, long translateYInNewWorld, double zoom, int start, int end)
        {
            this.GDI    = GDI;
            localBuffer = new List <MandelBrotPoint>(2 * localBufferCap);

            scrWidth   = screenWidth;
            scrHeight  = screenHeight;
            translX    = translateXInNewWorld;
            translY    = translateYInNewWorld;
            this.zoom  = zoom;
            this.start = start;
            this.end   = end;
        }