I’m currently building an intranet engine for a project I’ve got on the go at the moment, and I’d like to save myself a little time by generating header images from code where possible, however, I’d like it to match our concept image.
What I’d like to achieve is below:

My issue is I’ve not the faintest how to create that from code. I can do the absolute basics but that’s about it.
I start to fall down when it comes to the gradient background and the drop shadow on the text. I can get away with positioning the text on the larger header image, so if it’s not possible to generate the exact gradient I have there, then I have a work around for that, but what I really want to achieve is the text with the font and drop shadow.
I’d say it’s safe to assume that to use a “non-standard” font, I’d merely need to install it on the web server?
Thanks for any help in advance.
Here’s code to perform the task but it’s for WinForms. It shouldn’t be difficult to apply it to a web server:
The code above draws onto the form directly.
If you’d like to draw to an image instead, modify the code as follows:
And be sure to use
bmpRectinstead ofMe.ClientSize.I hope this works because this is entirely WinForms.