The typically used image format is something like this..
If it wasn't obvious enough, you're overflowing the color pool. I don't believe the mainstream cache tools check for overflowing, so they fuck everything up instead of warning you.Code:int[] colorPool = new int[256]; int[] pixels = ... int width = ... int height = ... public int getPixelColor(int x, int y) { return colorPool[pixels[x + (y * width)]]; }




