How do change the pixels of an image or texture in an automated way

I am thinking about going back to Unreal Engine after using other things for a while, but this is something that I must be able to do. I need to be able to set individual pixels with x, y and the color there is a lot that I have forgotten.