> How can I get text in a device independent bitmap
What is the context in which you 'have a DIB'? It's in a file on disk? In memory? If in memory, in what form?
One way to alter a DIB in any fashion is to select it into a Device Context and then use the appropriate API's to alter the DC, i.e.:
BitBlt()
StretchBlt()
DrawTextEx()
FillRect()
RoundRect()
.... etc.
Then obtain the changed Bitmap from the DC using GetDIBits()
Working with the GDI API covers a large body of information. I cannot possible cover it in a forum message. If you need to work with the GDI API's in Windows you should obtain one of the numerous books that cover the topic in detail.
Hope this helps
-pete