whitetiger on 11/09/06
Last Edited at 11/09/06 11:54pm
public BufferedImage toGray(BufferedImage bi) { ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY); ColorConvertOp op = new ColorConvertOp(cs, null); return op.filter(bi, null); }
Report this snippet Tweet
Comment:
You need to login to post a comment.