This routine, Screenshots.convertScreenShot() leaves a blank line down the middle when the height is an odd number.
// flip the components the way AWT likes them
for (int y = 0; y < height / 2; y++){
for (int x = 0; x < width; x++){
int inPtr = (y * width + x) * 4;
int outPtr = ((height-y-1) * width + x) * 4;
My quick fix is:
// flip the components the way AWT likes them
int yend = height/2;
if ((height % 2) != 0) { yend += 1; }
for (int y = 0; y < yend; y++){
for (int x = 0; x < width; x++){
int inPtr = (y * width + x) * 4;
int outPtr = ((height-y-1) * width + x) * 4;
I can’t find any list of “known bugs” or the like for JMonkeyEngine, so I put it here.