Mobile app version of vmapp.org
Login or Join
Barnes313

: How can I change all white pixels to black but keep the transparancy intact using Gimp? I have toolbar icons in a file that are all white with transparent background. Using gimp, how do

@Barnes313

Posted in: #Gimp

I have toolbar icons in a file that are all white with transparent background. Using gimp, how do I change the white to black without affecting the transparency?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Barnes313

2 Comments

Sorted by latest first Latest Oldest Best

 

@Goswami567

Another approach is to select all color channels, but un-select the 'alpha' channel in the channels toolbox, then fill with desired color. If you find you do not have an 'alpha' channel, then the mode of the image must not support transparency.

10% popularity Vote Up Vote Down


 

@Merenda852

General case, any color to any color:


Click on the "Alpha-lock" icon, which is the small checkerboard icon in the "Lock" line at the top of the Layers list.





Bucket-fill the layer with the new color (black for you), the alpha lock will ensure that pixels keep they current opacity (this means, without any active selection, to use the bucket-fill with the "Fill whole selection" option.


Faster for your specific case (black to white or white to black):

Just use Colors>Invert

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme