我使用此方法获取图像中像素的整数值:
int colour = img.getRGB(x, y);
然后我打印出值,我看到黑色像素对应的值如"-16777216",一种蓝色的像"-16755216"等等.有人可以解释一下这个值背后的逻辑吗?
java rgb bufferedimage colors image-processing
bufferedimage ×1
colors ×1
image-processing ×1
java ×1
rgb ×1