setQuantumStrategy(QuantumFactory.LINEAR, 1.0, QuantumFactory.DEPTH_8BIT); setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); ChannelBindings[] cb = renderer.getRenderingDef().getChannelBindings(); PixelsStats stats = renderer.getPixelsStats(); for (int i = 0; i < cb.length; i++) resetDefaultsChannel(i, stats);  renderer.getCodomainChain().remove();
setQuantumStrategy(QuantumFactory.DEPTH_8BIT, QuantumFactory.NOISE_REDUCTION); setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); ChannelBindings[] cb = renderer.getRenderingDef().getChannelBindings(); PixelsStats stats = renderer.getPixelsStats(); for (int i = 0; i < cb.length; i++) resetDefaultsChannel(i, stats);  renderer.getCodomainChain().remove();   setModel(RenderingDef.GS);
	public void resetDefaults()	{		//linear gamma = 1.0 and bitResolution <=> 255		setQuantumStrategy(QuantumFactory.LINEAR, 1.0, 							QuantumFactory.DEPTH_8BIT);		setCodomainInterval(0, QuantumFactory.DEPTH_8BIT);		ChannelBindings[] cb = renderer.getRenderingDef().getChannelBindings();		PixelsStats stats = renderer.getPixelsStats();		for (int i = 0; i < cb.length; i++)				resetDefaultsChannel(i, stats);		//Remove all the codomainMapCtx except the identity.		renderer.getCodomainChain().remove();				//reset the strategy.		setModel(RenderingDef.GS);	}