Microsoft Paint has been bundled with the Windows operating system since the 1990s and, over the years, has become a more well-rounded graphics design application. One of the features added since the early days is the ability to erase only a certain colour from an image, replacing it with a colour of your choice. You can learn how to use the "color replacement" function in just a few steps.
Select the "eraser" tool from the toolbox on the left-hand side of the screen.
Click on the primary colour box and select the colour that you'd like to erase, then click on the secondary colour box and choose the colour you'd like to replace the primary colour with. For example, if you're working with a white background and you'd like to replace black with white, you should set black as the primary colour and white as the secondary colour.
Hold down the right mouse button and sweep over the image with your mouse pointer. The primary colour will start to disappear and be replaced with the secondary colour.
Click "File" and "Save" to save the changes you've made to your image.