Package org.geoserver.wms.map.PNGMapResponse

Examples of org.geoserver.wms.map.PNGMapResponse.QuantizeMethod


     */
    protected RenderedImage applyPalette(RenderedImage image, WMSMapContent mapContent,
            String palettedFormatName, boolean supportsTranslucency) {
        // check to see if we have to see a translucent or bitmask quantizer
        GetMapRequest request = mapContent.getRequest();
        QuantizeMethod method = (QuantizeMethod) request.getFormatOptions().get(
                PaletteManager.QUANTIZER);
        boolean useBitmaskQuantizer = method == QuantizeMethod.Octree
                || !supportsTranslucency
                || (method == null && image.getColorModel().getTransparency() != Transparency.TRANSLUCENT);

View Full Code Here

TOP

Related Classes of org.geoserver.wms.map.PNGMapResponse.QuantizeMethod

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.