I have a png image like this:

How can I invert the frame around the waveform so it appears black, without changing the alpha of the waveform itself. (The waveform part is transparent.)
It probably has something to do with CGCreateImageMask but I can’t figure out the exact process.
Figured it out: