Advertisement
Guest User

How to set icc color profile in Java and change colorspace

a guest
Feb 27th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  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 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement