Help needed ! Stuck in Image processing !

Hey guys , how are you all

I want to process parts of my game background image(lets say two or three different location squares of some image)

I want my program to manipulate RGB pixels in some manner , like if the player did [that action], change color of these pixels to [color 1, color2, color3]

any helpfull info , even a link to some usefull online tutorial or lessons would be very appreciated. :slight_smile:

newbie-java-developer

One way to change colors is to use a LookupOp. There’s a chapter in Killer Game Programming about it.

Look into accessing the WritableRaster of a BufferedImage.


WritableRaster r = image.getData().createCompatibleWritableRaster();

Thanks all , I’ll try both ways.