Is there an equivalence of MapRGB for a BufferedImage in Java?
- by SDLFunTimes
I'm trying to color individual pixels on a BufferedImage (TYPE_INT_RGB) using setRGB but I'm not for sure how to set format the RGB values I want as a single integer. Is there a method that will take 3 ints (RGB values) and return a correctly formatted integer for setRGB?