001package net.gdface.image;
002
003/**
004 * 图像矩阵读写接口
005 * @author guyadong
006 *
007 */
008public interface ImageMatrix {
009        /**
010         * @return height
011         */
012        int getHeight();
013        /**
014         * @return width
015         */
016        int getWidth();
017        /**
018         *  对图像数据指定的区域解码返回灰度图像矩阵
019         * @return 灰度图像矩阵数据
020         * @throws UnsupportedFormatException
021         */
022        byte[] getMatrixGray() throws UnsupportedFormatException;
023        /**
024         * 对图像解码返回BGR格式矩阵数据
025         * @return
026         * @throws UnsupportedFormatException
027         */
028        byte[] getMatrixBGR() throws UnsupportedFormatException;
029        /**
030         * 对图像解码返回RGB格式矩阵数据
031         * @return 
032         * @throws UnsupportedFormatException
033         */
034        byte[] getMatrixRGB() throws UnsupportedFormatException;
035        /**
036         * 对图像解码返回RGBA格式矩阵数据
037         * @return
038         * @throws UnsupportedFormatException
039         */
040        byte[] getMatrixRGBA() throws UnsupportedFormatException;
041
042}