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}