Package java.awt.image

Examples of java.awt.image.BufferedImageOp.filter()


   * @param colorSpace target colorspace
   * @return image with changed colorspace
   */
  public static BufferedImage changeColorSpace(BufferedImage source, ColorSpace colorSpace) {
    BufferedImageOp operation = new ColorConvertOp(colorSpace, null);
    return operation.filter(source, null);
  }
 
  /**
   * Tryes to create grayscale copy of given image. If image is already grayscale
   * then returns itself.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.