Package railo.runtime.img.filter

Examples of railo.runtime.img.filter.QuantizeFilter


  }

 
  public static void writeOutGif(BufferedImage src, OutputStream os) throws IOException {
    BufferedImage dst = new BufferedImage(src.getWidth(), src.getHeight(), BufferedImage.TYPE_INT_ARGB);
    QuantizeFilter filter=new QuantizeFilter();
    filter.setSerpentine(true);
    filter.setDither(true);
    //filter.setNumColors(8);
    filter.filter(src, dst);
   

    //image(Quantizer.quantize(image(), 8));
    try {
      GifEncoder enc = new GifEncoder(dst);
View Full Code Here

TOP

Related Classes of railo.runtime.img.filter.QuantizeFilter

Copyright © 2018 www.massapicom. 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.