All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.gdface.image.ImageMatrix Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package net.gdface.image;

/**
 * 图像矩阵读写接口
 * @author guyadong
 *
 */
public interface ImageMatrix {
	/**
	 * @return height
	 */
	int getHeight();
	/**
	 * @return width
	 */
	int getWidth();
	/**
	 *  对图像数据指定的区域解码返回灰度图像矩阵
	 * @return 灰度图像矩阵数据
	 * @throws UnsupportedFormatException
	 */
	byte[] getMatrixGray() throws UnsupportedFormatException;
	/**
	 * 对图像解码返回BGR格式矩阵数据
	 * @return BGR格式矩阵数据
	 * @throws UnsupportedFormatException
	 */
	byte[] getMatrixBGR() throws UnsupportedFormatException;
	/**
	 * 对图像解码返回RGB格式矩阵数据
	 * @return RGB格式矩阵数据
	 * @throws UnsupportedFormatException
	 */
	byte[] getMatrixRGB() throws UnsupportedFormatException;
	/**
	 * 对图像解码返回RGBA格式矩阵数据
	 * @return RGBA格式矩阵数据
	 * @throws UnsupportedFormatException
	 */
	byte[] getMatrixRGBA() throws UnsupportedFormatException;
	/**
	 *  对图像解码返回指定格式数据
* @param matrixType 矩阵类型 * @return 指定格式的矩阵数据 * @throws UnsupportedFormatException */ byte[] getMatrixData(MatType matrixType) throws UnsupportedFormatException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy