Exemplo n.º 1
0
        /// <summary>
        /// Initialize image synthesizer (responsible for raster image computation).
        /// </summary>
        public static IRenderer getRenderer(IImageFunction imf)
        {
            SimpleImageSynthesizer sis = new SimpleImageSynthesizer();

            sis.ImageFunction = imf;
            return(sis);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initialize image synthesizer (responsible for raster image computation).
        /// </summary>
        public static IRenderer getRenderer(IImageFunction imf, int superSampling)
        {
            if (superSampling > 1)
            {
                SupersamplingImageSynthesizer sis = new SupersamplingImageSynthesizer();
                sis.ImageFunction = imf;
                sis.Supersampling = superSampling;
                sis.Jittering     = 1.0;
                return(sis);
            }
            SimpleImageSynthesizer s = new SimpleImageSynthesizer();

            s.ImageFunction = imf;
            return(s);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initialize image synthesizer (responsible for raster image computation).
        /// </summary>
        public static IRenderer getRenderer(string param, IImageFunction imf)
        {
            Form1 f = Form1.singleton;

            if (f.superSampling > 1)
            {
                SupersamplingImageSynthesizer sis = new SupersamplingImageSynthesizer();
                sis.ImageFunction = imf;
                sis.Supersampling = f.superSampling;
                sis.Jittering     = 1.0;
                return(sis);
            }
            SimpleImageSynthesizer s = new SimpleImageSynthesizer();

            s.ImageFunction = imf;
            return(s);
        }