public PngWriter(Map params) { this.verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false); }
public PngWriter(Map params) { this.verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false); }
public PhotoshopApp13Data parsePhotoshopSegment(byte bytes[], Map params) throws ImageReadException, IOException { boolean strict = ParamMap.getParamBoolean(params, SanselanConstants.PARAM_KEY_STRICT, false); boolean verbose = ParamMap.getParamBoolean(params, SanselanConstants.PARAM_KEY_VERBOSE, false); return parsePhotoshopSegment(bytes, verbose, strict); }
public PhotoshopApp13Data parsePhotoshopSegment(byte bytes[], Map params) throws ImageReadException, IOException { boolean strict = ParamMap.getParamBoolean(params, SanselanConstants.PARAM_KEY_STRICT, false); boolean verbose = ParamMap.getParamBoolean(params, SanselanConstants.PARAM_KEY_VERBOSE, false); return parsePhotoshopSegment(bytes, verbose, strict); }
public Dimension getImageSize(ByteSource byteSource, Map params) throws ImageReadException, IOException { // make copy of params; we'll clear keys as we consume them. params = (params == null) ? new HashMap() : new HashMap(params); boolean verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false); if (params.containsKey(PARAM_KEY_VERBOSE)) params.remove(PARAM_KEY_VERBOSE); if (params.size() > 0) { Object firstKey = params.keySet().iterator().next(); throw new ImageReadException("Unknown parameter: " + firstKey); } BmpHeaderInfo bhi = readBmpHeaderInfo(byteSource, verbose); if (bhi == null) throw new ImageReadException("BMP: couldn't read header"); return new Dimension(bhi.width, bhi.height); }
public Dimension getImageSize(ByteSource byteSource, Map params) throws ImageReadException, IOException { // make copy of params; we'll clear keys as we consume them. params = (params == null) ? new HashMap() : new HashMap(params); boolean verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false); if (params.containsKey(PARAM_KEY_VERBOSE)) params.remove(PARAM_KEY_VERBOSE); if (params.size() > 0) { Object firstKey = params.keySet().iterator().next(); throw new ImageReadException("Unknown parameter: " + firstKey); } BmpHeaderInfo bhi = readBmpHeaderInfo(byteSource, verbose); if (bhi == null) throw new ImageReadException("BMP: couldn't read header"); return new Dimension(bhi.width, bhi.height); }
public ImageInfo getImageInfo(ByteSource byteSource, Map params) throws ImageReadException, IOException { // make copy of params; we'll clear keys as we consume them. params = (params == null) ? new HashMap() : new HashMap(params); boolean verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false); if (params.containsKey(PARAM_KEY_VERBOSE)) params.remove(PARAM_KEY_VERBOSE); if (params.size() > 0) { Object firstKey = params.keySet().iterator().next(); throw new ImageReadException("Unknown parameter: " + firstKey); } IcnsContents contents = readImage(byteSource); ArrayList images = IcnsDecoder.decodeAllImages(contents.icnsElements); if (images.isEmpty()) throw new ImageReadException("No icons in ICNS file"); BufferedImage image0 = (BufferedImage) images.get(0); return new ImageInfo("Icns", 32, new ArrayList(), ImageFormat.IMAGE_FORMAT_ICNS, "ICNS Apple Icon Image", image0.getHeight(), "image/x-icns", images.size(), 0, 0, 0, 0, image0.getWidth(), false, true, false, ImageInfo.COLOR_TYPE_RGB, ImageInfo.COMPRESSION_ALGORITHM_UNKNOWN); }
public Dimension getImageSize(ByteSource byteSource, Map params) throws ImageReadException, IOException { // make copy of params; we'll clear keys as we consume them. params = (params == null) ? new HashMap() : new HashMap(params); boolean verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false); if (params.containsKey(PARAM_KEY_VERBOSE)) params.remove(PARAM_KEY_VERBOSE); if (params.size() > 0) { Object firstKey = params.keySet().iterator().next(); throw new ImageReadException("Unknown parameter: " + firstKey); } IcnsContents contents = readImage(byteSource); ArrayList images = IcnsDecoder.decodeAllImages(contents.icnsElements); if (images.isEmpty()) throw new ImageReadException("No icons in ICNS file"); BufferedImage image0 = (BufferedImage) images.get(0); return new Dimension(image0.getWidth(), image0.getHeight()); }
boolean verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false);
boolean verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false);
boolean verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false);
boolean verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false);
boolean forceIndexedColor = ParamMap.getParamBoolean(params, PARAM_KEY_PNG_FORCE_INDEXED_COLOR, false); boolean forceTrueColor = ParamMap.getParamBoolean(params, PARAM_KEY_PNG_FORCE_TRUE_COLOR, false);
boolean forceIndexedColor = ParamMap.getParamBoolean(params, PARAM_KEY_PNG_FORCE_INDEXED_COLOR, false); boolean forceTrueColor = ParamMap.getParamBoolean(params, PARAM_KEY_PNG_FORCE_TRUE_COLOR, false);
public BufferedImage getBufferedImage(ByteSource byteSource, Map params) throws ImageReadException, IOException boolean verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false);
boolean verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false);
boolean verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false);
boolean verbose = ParamMap.getParamBoolean(params, PARAM_KEY_VERBOSE, false);