Here is a little code and info that might help out a little.
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'An array of points that defines a triangle
Dim points(2) As Point
'An image the size of the form
Dim bmp As New Bitmap(Me.ClientSize.Width, Me.ClientSize.Height)
'A graphics object to do the drawing
Dim gr As Graphics = Graphics.FromImage(bmp)
'Bottom left point
points(0) = New Point(0, bmp.Height)
'Bottom right point
points(1) = New Point(bmp.Width, bmp.Height)
'Top middle point
points(2) = New Point(CInt(bmp.Width / 2), 0)
'Use AntiAliasing to create smoother edges
gr.SmoothingMode = Drawing2D.SmoothingMode.AntiAlias
'Fill a polygon defined by the points array and filled with blue
gr.FillPolygon(Brushes.Blue, points)
'Clean up
gr.Dispose()
'Set the forms background image to our triangle
Me.BackgroundImage = bmp
'I don't know much about creating gradients but I know you can create
'gradient brushes using:
'System.Drawing.Drawing2D.LinearGradientBrush()
'System.Drawing.Drawing2D.PathGradientBrush()
'Hopefully this will get you started.
End Sub
Enter your message below
Sign in or Join us (it's free).