我想比較jpg文件A和文件B在Android上的每個像素。圖像具有相同的hxw。 Android不支持awt的BufferedImage。建議?僞代碼:循環遍歷java中的每個像素android
for (int x = 0; x < a.getWidth(); x++) {
for(int y = 0; y < a.getHeight(); y++) {
int rgb = a.getRGB(x, y);
int rgb2 = b.getRGB(x, y);
...
}
}