I had to make new button graphics for a web page, and they had to match the existing buttons. I couldn't get/find the original graphics files with the layers that neatly separated the text from the background colors. So I had to somehow change the text on this button:
which meant that I needed to remove the text and get a blank version of the button and write new text on it.
My first thought was basically "clone the background and paint/pencil over the text with matching background colors to create a blank button." But my clone-and-paint dexterity wasn't good enough to match the original colors and shading, or I was just impatient.
So now I decided to create the button background anew, and then write text over it. Using Paint.NET and existing tutorials on gradients, I could only make flat-looking buttons that didn't match the reflecting-light looks of the originals.
But then I remembered from the gradient tutorials that you can select certain pixels and then stretch them to cover more surface area. Well, maybe I could use the rectangular Select tool, copy the gradient pixels from the old button, top-to-bottom
make a new image the same size (248 by 45), and paste the pixels and stretch them to fill the width of the new button.
So now my whole new button was the gradient.
But it didn't look right at the left and right edges, so I also had to find a way to copy the borders on those sides I lassoed the text in the middle of the old button:
and then did a Reverse Lasso (Edit: Invert Selection) to get everything except the text, and copy it.
The new button only had a background layer. I added a new layer and pasted the border on it.
Once I viewed both layers of the new image:
I had my blank button, ready for new text and/or saving as a PNG.
In retrospect, I could have done that lasso and paste of the border first, and then stretched the existing gradient pixels in the new file over the middle of the image. That might have been easier. In any case, I hope this is useful for other graphics newbies, or anyone who has to remove something from the middle of a background.