So ich habe es endlich geschaft mir nen Image zu erstellen
VB.NET-Quellcode
- Protected Sub CreateColorImage(ByVal _g As Graphics, ByVal _Rect As Rectangle, ByVal _CenterColor As Color, ByVal _SurroundColor As Color())
- Dim m_GraphicsPath As New GraphicsPath
- m_GraphicsPath.AddEllipse(_Rect)
- Dim m_PGB As PathGradientBrush = New PathGradientBrush(m_GraphicsPath)
- m_PGB.CenterColor = _CenterColor
- m_PGB.SurroundColors = _SurroundColor
- m_PGB.CenterPoint = New Point(CInt(_Rect.Width / 2), CInt((_Rect.Height / 100) * 10))
- _g.FillEllipse(m_PGB, _Rect)
- End Sub
Keep Calm And Color Your Life