I have bufferedImage and I want to draw rectangles over it. Everything works fine, except that the color of the rectangle is always black even though I have the code like:
g2d.fillRect(x, y, width, height);
I think it is happening because the bufferedimage is black and white in color.
Any ideas, please.