ScreenshotCreater

@ Marvin:

It seems to be little mistake in the ScreenshotCreater.convertRGBA() method:

instead of :

pixelInts[i++] = ( (0xFF000000) 
                                | ((iR & 0xFF) << 24) 
                                | ((iG & 0xFF) << 16) 
                                | ((iB & 0xFF) << 8)
                                | ( iA & 0xFF) );

should be probably:

pixelInts[i++] = ( (0xFF000000) 
                                | ((iA & 0xFF) << 24) 
                                | ((iR & 0xFF) << 16) 
                                | ((iG & 0xFF) << 8)
                                | ( iB & 0xFF) );

Would you please verify…

Thanks,
Bohdan.

I’ll blindly believe you ;).

I knew there’s a failure in the alpha screenshot generation and it’s certainly related to this. I just copied this code from a webpage that I don’t remember.

I’ll fix it your way.

Marvin

EDIT: fixed :slight_smile:

also, whoever worked on com.xith3d.utility.screenshots package… it should be spelled ScreenshotCreator, not ScreenshotCreater… checking the spelling can help the api look more professional

Thanks. My fault :-[. I’ll rename it. It came in after the last release so this is (luckily) no problem.

Thanks! :slight_smile:

Oh sure.