code: /**
   * License: GPL
   *
   * This program is free software; you can redistribute it and/or
   * modify it under the terms of the GNU General Public License 2
   * as published by the Free Software Foundation.
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU General Public License for more details.
   *
   * You should have received a copy of the GNU General Public License
   * along with this program; if not, write to the Free Software
   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
   */
  package net.imglib2.render.volume;
  
  import net.imglib2.converter.Converter;
  import net.imglib2.type.numeric.ARGBType;
  import net.imglib2.type.numeric.AbstractARGBDoubleType;
  
  /**
   * 
   *
   * @author Stephan Saalfeld <saalfeld@mpi-cbg.de>
   */
  public class ARGBDoubleARGBConverter< T extends AbstractARGBDoubleType< ? > > implements Converter< T, ARGBType >
  {
  	@Override
  	public void convert( final T input, final ARGBType output )
  	{
  		output.set( input.toARGBInt() );
  	}
  }
  