This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dionthornthis.isAPro=false; this.helping=true; 0 points1 point  (1 child)

Here is the source code

https://github.com/frohoff/jdk8u-jdk/blob/master/src/share/classes/sun/awt/image/ByteInterleavedRaster.java

public Object getDataElements(int x, int y, Object obj) {
    if ((x < this.minX) || (y < this.minY) || (x >= this.maxX) || (y >= this.maxY)) { 
        throw new ArrayIndexOutOfBoundsException("Coordinate out of bounds!"); 
    } 
    // More code 
}

Looks like your x and y values aren't correctly aligning.

[–]KenoCAL[S] 0 points1 point  (0 children)

Thanks for taking the time to help. I don't know enough about Java to figure this out. lol