/// <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); }
/// <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); }
/// <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); }