I need a subroutine:
it takes the BufferedImage, and adds color balance to the image, and returns it.
public BufferedImage colorBalance(BufferedImage src, Color r, Color g, Color b)
I am making a lightsaber maker program, pretty much the same as LSMaker (lsmaker.uw.hu), and i need this for the rendering.
The person who solves this will get credited.
I have a preview on YouTube, search for "THEAniKan" and scroll down to it.
I would put a link, but i don't have 25 posts yet...
I have solved it!! Give me the loot. It's all my mine.
So, i got some more done. Now you atleast can have the rgb values for each pixel.
public BufferedImage colorBalance(BufferedImage src, byte red, byte green, byte blue)
int width = src.getWidth();
int height = src.getHeight();
for(int i = 0; i < width; i++)
for(int j = 0; j < height; j++)
int rgb = src.getRGB(i,j);
int a = (rgb >>> 24) & 0xFF;
int r = (rgb >>> 16) & 0xFF;
int g = (rgb >>> 8) & 0xFF;
int b = (rgb >>> 0) & 0xFF;