This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

How to set icc color profile in Java and change colorspace

By: a guest on Feb 27th, 2012  |  syntax: None  |  size: 0.22 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ICC_Profile ip = ICC_Profile.getInstance( ColorSpace.CS_sRGB );
  2. ICC_ColorSpace ics = new ICC_ColorSpace( ip );
  3. ColorConvertOp cco = new ColorConvertOp( ics, null );
  4. BufferedImage result = cco.filter( sourceImage, null );
clone this paste RAW Paste Data