Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这一天我在看这个教程,他用了这条线......
private int[] pixels =((DataBufferInt)image.getRaster().getDataBuffer().getData());
但是由于某种原因对他来说它有效,但对我来说却没有,我总是得到这两个错误......
DataBufferInt
int[]
getData()
DataBuffer
请帮帮我。
我经常有这个。注意括号:
private int[] pixels =((DataBufferInt)image.getRaster().getDataBuffer()).getData();