Here are some generic explanations
Highlight the text and only the text.
then inverse the selection, in photoshop you do this by (ctrl-shift-i)
then delete whatever is in this new selection.
Save the actual image with the background color desired, this way any semi-transparent layers will have that color set in them.