How can I draw text on a TImage and retain Alpha?

BlitzMax Forums/BlitzMax Programming/How can I draw text on a TImage and retain Alpha?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi. I have an image of a scroll which is a png so the edges are alphablended and there are full transparent areas too. I'd like to draw some text onto the scroll but I have no idea how to do this!

I could cls the screen, draw the scroll, then the text, then regrab the whole thing but then the grabbed image will have no alpha data so I won't be able to use it properly in-game anymore...

So is there a way to draw text directly (using DrawText) onto an image using maybe Pixmaps or some DirectX render to texture jiggery pokery? I'm using draw text because the actual text changes all the time, I can't predraw it outside of the game.

Any advice much appreciated. Thanks :-)