private static BufferedImage expandGrayThumb(BufferedImage thumb){
  BufferedImage ret=new BufferedImage(thumb.getWidth(),thumb.getHeight(),BufferedImage.TYPE_INT_RGB);
  Graphics g=ret.getGraphics();
  g.drawImage(thumb,0,0,null);
  return ret;
}

private static BufferedImage expandGrayThumb ( BufferedImage thumb ) { BufferedImage ret = new BufferedImage ( thumb . getWidth ( ) , thumb . getHeight ( ) , BufferedImage . TYPE_INT_RGB ) ; Graphics g = ret . getGraphics ( ) ; g . drawImage ( thumb , 0 , 0 , null ) ; return ret ; }
return an rgb image that is the expansion of the given grayscale image .
