0
我在這裏搜索了一下,找到一個答案,但我發現並沒有幫助我很多,所以我創建了一個新的職位的答案..DataBufferInt不能被解析爲一個變量[ERR]
的錯誤是在這裏:
private BufferedImage image = new BufferedImage(WIDTH, HEIGHT,BufferedImage.TYPE_INT_RGB);
private int[] pixels =((DataBufferInt)image.getRaster().getDataBuffer()).getData();
//錯誤
DataBufferInt cannot be resolved to a variable
任何幫助嗎?
的Java。 *因爲我加了斜體:/ – KenigOri