Package org.vfny.geoserver.wms.responses.map.gif

Examples of org.vfny.geoserver.wms.responses.map.gif.Gif89Encoder.encode()


         
          Gif89Encoder gifenc = new Gif89Encoder(image,mapCtx.getBgColor(),2 ); // 2= colour reduction pixel sample factor (1=look at all pixels, but its slow)
            gifenc.setComments("produced by Geoserver");
           
            gifenc.getFrameAt(0).setInterlaced(false);
            gifenc.encode(outStream);
        }
        else
        {
           // GIFOutputStream.writeGIF(outStream, image);
          Gif89Encoder gifenc = new Gif89Encoder(image,null,2);// 2= colour reduction pixel sample factor (1=look at all pixels, but its slow)
View Full Code Here


           // GIFOutputStream.writeGIF(outStream, image);
          Gif89Encoder gifenc = new Gif89Encoder(image,null,2);// 2= colour reduction pixel sample factor (1=look at all pixels, but its slow)
            gifenc.setComments("produced by Geoserver");
           // gifenc.setTransparentIndex(transparent_index);
            gifenc.getFrameAt(0).setInterlaced(false);
            gifenc.encode(outStream);
           
        }
    }
}
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.