apache-comnons系列之commons-imaging1.0 学习笔记

原创 2017年08月01日 22:44:55

apache-comnons系列之commons-imaging1.0 学习笔记


  • Imaging
    • The primary application programming interface (API) to the Imaging library.
  • ImageInfo
    • ImageInfo represents a collection of basic properties of an image, such as width, height, format, bit depth, etc.
  • ImageFormat
    • ImageFormats
    • BMP/GIF…
  • ImageParser
    • Provides the abstract base class for all image reading and writing utilities. ImageParser implementations are expected to extend this
    • class providing logic for identifying and processing data in their own specific format.
  • BmpImageParser


  • org.apache.commons.imaging.ImagingTest
    • guessFormat
      • Attempts to determine the image format of a file based on its “magic numbers,” the first bytes of the data.
      • compareBytePair
      • MAGIC_NUMBERS_GIF = { 0x47, 0x49, };
    • getImageInfo(委托给具体类型图片解析器)
      • imageParser = getImageParser(byteSource);
      • imageInfo = imageParser.getImageInfo(byteSource, params);
    • getBufferedImage
      • Reads the first image from a byte array.
      • imageParser = getImageParser(byteSource);
      • imageParser = getImageParser(byteSource);
    • writeImage
      • Writes the content of a BufferedImage to an OutputStream using the specified image format. Specifications for storing the file (such as data compression,
      • color models, metadata tags, etc.) may be specified using an optional parameters map.
      • imageParser2.canAcceptType(format)
      • imageParser.writeImage(src, os, params);
  • org.apache.commons.imaging.examples.SampleUsage
    • 样例代码


apache-comnons系列之commons-pool2.4 学习笔记

apache-comnons系列之commons-pool2.4 学习笔记概述 参考 http://www.jianshu.com/p/b0189e01de35 https://my.oschina...

apache-comnons系列之commons-logging1.2 学习笔记

apache-comnons系列之commons-logging1.2 学习笔记概述 参考 http://blog.csdn.net/linshuhe1/article/details/537615...

apache-comnons系列之commons-configuration2 学习笔记

apache-comnons系列之commons-configuration2 学习笔记概述 参考 http://blog.csdn.net/werder/article/details/54562...

apache-comnons系列之commons-email1.4 学习笔记

apache-comnons系列之commons-email1.4 学习笔记概述Email The base class for all email messages. This class set...

apache-comnons系列之commons-dbutils1.7 学习笔记

apache-comnons系列之commons-dbutils1.7 学习笔记概述 参考 http://blog.csdn.net/imust_can/article/details/700597...

apache-comnons系列之commons-vfs2 学习笔记

apache-comnons系列之commons-vfs2 学习笔记概述 参考 http://p7engqingyang.iteye.com/blog/1702429 http://blog.csd...

apache-comnons系列之commons-net3.6 学习笔记

apache-comnons系列之commons-net3.6 学习笔记概述SocketClient The SocketClient provides the basic operations th...


最近在学commons.io,记录如下: commons.io包含几个package: 让顺序来,先学习第一个包。 FileSystemUtils类提供一些静态的工具方法,例如查...


源代码:/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license ...

apache commons学习系列记录之IO组件version2.4之一

基于commons-IO-2.4版本                 索引                 说明 ...