java - DataBufferInt cannot be resolved to a type -
i'm using eclipse java , i'm newbie programmer, lately i've been using different online resources try make own simple game. have run issue databufferint cannot resolved type
.
public main() { screen = new screen(width, height); img = new bufferedimage(width, height, bufferedimage.type_int_rgb); pixels = ((databufferint) img.getraster().getdatabuffer()).getdata(); }
((databufferint) img.getraster().getdatabuffer())
error happening.
i have tried restarting, , deleting , re-adding jre library.
are importing java.awt.image.databufferint
?
check whether have
import java.awt.image.databufferint;
or
import java.awt.image.*;
at top of main.java file (above public main() {
)
Comments
Post a Comment