Pixel manipulation with bufferstrategy.

I was intrigued when I saw a post about software pixel manipulation in java so I asked about a good way to do direct buffer writes and a few peeps posted very good solutions.

I’m making a new thread so as not to derail the original.

One particular post I like was by ClickerMonkey using MemoryImageSource.

Tried it but somehow won’t work. Also tried passing null instead of screen but no luck.

Here’s my code but all I get is a flashing black screen.

www.pastebin.com/0dJkLA1v

Thanks.