Return to Snippet

Revision: 1724
at November 10, 2006 00:10 by whitetiger


Updated Code
public BufferedImage toGray(BufferedImage bi)
	{
		ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);
		ColorConvertOp op = new ColorConvertOp(cs, null);
		
		return op.filter(bi, null);
	}

Revision: 1723
at November 9, 2006 23:54 by whitetiger


Initial Code
public BufferedImage toGray(BufferedImage bi)
	{
		ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);
		ColorConvertOp op = new ColorConvertOp(cs, null);
		
		return op.filter(bi, null);
	}

Initial URL

                                

Initial Description

                                

Initial Title
Java - Color2Gray

Initial Tags
image, java, filter, images

Initial Language
Java