Change image color with transparent background
I need to load an image with green circle over a transparent background into a bitmap image using c# (System.Drawings). That's the easy part. However I need to change the color of the circle before adding it to the bigger image, without affecting the transparency of the surrounding. In my case I need to change the circle color to yellow and add it as a sun. I can't use fixed yellow circle image because the desired color is dynamic. So in the code below, how can I change the color of the image before adding it to the bitmap? Image i = Image.FromFile(greenCircleFile); Bitmap b = new Bitmap(500,