Package org.ajax4jsf.resource.image

Examples of org.ajax4jsf.resource.image.GIFEncoder


  }

  public void sendImage(ResourceContext context, RenderedImage image)
      throws IOException {
    // ImageIO.write(image,"gif",context.getOutputStream());
    GIFEncoder encoder = new GIFEncoder();
    DataOutputStream out = new DataOutputStream(context.getOutputStream());
    try {
      encoder.encode((BufferedImage) image, out);
      out.flush();
      out.close();

    } catch (Exception e) {
      // IE can unexpected close connection
View Full Code Here

TOP

Related Classes of org.ajax4jsf.resource.image.GIFEncoder

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.