Package ar.com.hjg.pngj

Examples of ar.com.hjg.pngj.FilterType


        filtersPerf.updateFromFiltered(ftype, filtered, currentRow);
      }
    }
    filteredRows[0] = rowb;
    if (tryAdaptive) {
      FilterType preferredAdaptive = filtersPerf.getPreferred();
      filterBank[5].write(filteredRows[preferredAdaptive.val]);
    }
    if (currentRow == lastRowInThisBand) {
      int best = getBestCompressor();
      // if(currentRow>90&&currentRow<100)
View Full Code Here


    private static final Logger LOGGER = Logging.getLogger(PNGJWriter.class);

    public RenderedImage writePNG(RenderedImage image, OutputStream outStream, float quality,
            WMSMapContent mapContent) {
        // what kind of scaline filtering are we going to use?
        FilterType filterType = getFilterType(mapContent);
        // Creation of a new PNGWriter object
        PNGWriter writer = new PNGWriter();
        // Check if a Scanline is supported by the writer
        boolean isScanlineSupported = writer.isScanlineSupported(image);
        // If it is not supported, then the image is rescaled to bytes
View Full Code Here

                    }
                    Object filterObj = null;
                    if (map != null) {
                        filterObj = map.get(FILTER_TYPE);
                    }
                    FilterType filter = null;
                    if (filterObj == null || !(filterObj instanceof FilterType)) {
                        filter = FilterType.FILTER_NONE;
                    } else {
                        filter = (FilterType) filterObj;
                    }
View Full Code Here

TOP

Related Classes of ar.com.hjg.pngj.FilterType

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.