How to create multi-color linear gradient in WinForms? System.Drawing.Drawing2D.LinearGradientBrush allows only two colors.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
I have created a panel as I can use this as container for my project. The code is really simple, that is if you want to implement no stops as provided by Punker76.
Having a control makes re-use so much more efficient. Remember, you may need to re-build your project before you see the changes take effect when you make changes in the control.
same answer as here: Multi-color diagonal gradient in winforms Multi-color diagonal gradient in winforms
Here is a little example
here is the result
hope this helps