public static boolean isKnownByteFormat ( BufferedImage image ) { int type = image . getType ( ) ; return type != BufferedImage . TYPE_BYTE_INDEXED && type != BufferedImage . TYPE_BYTE_BINARY && type != BufferedImage . TYPE_CUSTOM ; }
Checks to see if it is a known byte format