God I would love that feature! It seems like that would save a lot of extra loading of the button image from file.Would be useful in bmcclure's case - i.e. load the button image once, and generate images with text for each button without having to read from or write to disk each time.
I could add the ability for the input to be a handle to an existing image, ad output to a handle
I know this uses GDI and not GDI+, but I would love to see this function supporting transparency on PNGs so that my button backgrounds edges can show through to the window background (eg rounded corners)
I like the idea of layering text, but:
1. What purpose is there creating text on top of text that doesn't match? So if anything, why not just add an option for making a second pass that defaults to 0?
2. You would have to have different style/position options for each pass, or there wouldn't be much use for the second pass (it would cover the first).
3. Couldn't this also be achieved with two subsequent function calls? Especially if you allow the function to operate on image handles.
Eg. call it once to draw the shadow, call it again to draw the text on top.