Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Java - Color2Gray

DZone's Guide to

Java - Color2Gray

·
Free Resource

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

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}