It seems from the answer above that you're sorted, but just thought I'd offer another possible solution.
How about doing it in code? You could create a new
, draw onto it using a Graphics object (obtained using
), then save the bitmap to file in your desired format.
DD Says...Sounds rather more complicated than my current envelope of ability would allow, but not beyond my horizon of potential, I shall investigate this.
Thanks though, you have put another project on my list of things to learn. The more the merrier.
Hi again Dave,
I've just had a play to make sure it was as easy as I thought and it is!
I don't have VB installed here, but here's the C# code - should be easy enough to convert.
public static class GradientCreator
public static void CreateGradientBitmap(Size size, Color color1, Color color2, float angle, string filename, ImageFormat format)
Rectangle fillRectangle = new Rectangle(0, 0, size.Width, size.Height);
Bitmap b = new Bitmap(size.Width, size.Height);
Graphics g = Graphics.FromImage(b);
Brush gradientBrush = new LinearGradientBrush(fillRectangle, color1, color2, angle);
catch (Exception ex)
Can be called something like:
GradientCreator.CreateGradientBitmap(new Size(100, 100), Color.DarkBlue, Color.LightBlue, 90f, imagePath, ImageFormat.Jpeg);