How can I save a graphics context to disk? Or how can I bitbltmask and draw text on a bitmap?

I need to perform the following: load an image from file, bitbltmask, write some text, then save it to disk.

The API help says I can manipulate a graphics context, but not save it. The API help says I can save a bitmap but not manipulate it. I need to do both.

What can I do?

Mat