apache-comnons系列之commons-imaging1.0 学习笔记
来源:互联网 发布:微信清死粉软件安卓版 编辑:程序博客网 时间:2024/06/08 05:41
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);
- guessFormat
- org.apache.commons.imaging.examples.SampleUsage
- 样例代码
阅读全文
0 0
- apache-comnons系列之commons-imaging1.0 学习笔记
- apache-comnons系列之commons-lang3 学习笔记1
- apache-comnons系列之commons-codec1.11 学习笔记
- apache-comnons系列之commons-dbutils1.7 学习笔记
- apache-comnons系列之commons-fileupload1.3.3 学习笔记
- apache-comnons系列之commons-compress1.14 学习笔记
- apache-comnons系列之commons-math3.6 学习笔记
- apache-comnons系列之commons-pool2.4 学习笔记
- apache-comnons系列之commons-email1.4 学习笔记
- apache-comnons系列之commons-net3.6 学习笔记
- apache-comnons系列之commons-cli1.4 学习笔记
- apache-comnons系列之commons-configuration2 学习笔记
- apache-comnons系列之commons-logging1.2 学习笔记
- apache-comnons系列之commons-vfs2 学习笔记
- apache-comnons系列之commons-chain1.2 学习笔记
- apache-comnons系列之commons-exec1.3 学习笔记
- apache-comnons系列之commons-digester 3.3.2 学习笔记
- apache-comnons系列之commons-io-2.5 org.apache.commons.io.IOUtils学习笔记
- Bigdata Development Java_Study_07(equals,HashCode和compare Date)
- fonts.googleapis.com响应时间过长的解决方法
- 读书笔记
- Angular 实现类似博客获取回复评论的数据
- 《数据库SQL实战》获取所有非manager的员工emp_no
- apache-comnons系列之commons-imaging1.0 学习笔记
- 剑指offer 9---斐波那契数列
- 生活本就是点点滴滴,没有积累便容易忘记
- 第九章项目人力资源管理
- 数据结构10:二叉树专题
- JavaScript将指定的元素对象移动到固定的距离函数封装
- 在 Linux 系统上安装主播软件
- CSU-ACM2017暑期训练6-bfs Mike and Shortcuts
- 在TP驱动中添加虚拟按键