达到<条码>每一页数的微调汇率价值的最快途径是什么。 BufferedImage?
Right now I am getting the RGB values using two for
loops as shown in the code below, but it took too long to get those values as the nested loop runs a total of 479999 times for my image. If I use a 16-bit image this number would be even higher!
我需要更快地获得六分之一的价值观。
在这方面,我目前正在努力与以下各方合作:
BufferedImage bi=ImageIO.read(new File("C:\images\Sunset.jpg"));
int countloop=0;
for (int x = 0; x <bi.getWidth(); x++) {
for (int y = 0; y < bi.getHeight(); y++) {
Color c = new Color(bi.getRGB(x, y));
System.out.println("red=="+c.getRed()+" green=="+c.getGreen()+" blue=="+c.getBlue()+" countloop="+countloop++);
}
}