Java???????????
???????????? ???????[ 2014/9/16 12:02:03 ] ??????????????? Java
???????e???????д???Щ??????????????и???????FindPic???????????Χ??????????????????????????????λ?á?
?????????Java?????????????????????
????????????
????????????????A??(????????????B)??
?????????A????????????B???磬????B?????????A????????
?????????????????B?????????????????????????????????в???4?????????????2??????
??????????????????Χ???????????B?????????????????????????????????????????????2??????
???????????????????????BufferedImage??????????????RGB???????????£???BufferedImage????int??????飺
1 /**
2 * ????BufferedImage?????RGB????
3 * @param bfImage
4 * @return
5 */
6 public static int[][] getImageGRB(BufferedImage bfImage) {
7 int width = bfImage.getWidth();
8 int height = bfImage.getHeight();
9 int[][] result = new int[height][width];
10 for (int h = 0; h < height; h++) {
11 for (int w = 0; w < width; w++) {
12 //???getRGB(w?? h)?????????????ARGB????????????????????RGB???????????ARGB?????RGB????bufImg.getRGB(w?? h) & 0xFFFFFF??
13 result[h][w] = bfImage.getRGB(w?? h) & 0xFFFFFF;
14 }
15 }
16 return result;
17 }
?????????????????RGB??????????????????????????????==Ч?????????????????????????0???????????????RGB??????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11