Is it possible to create a brush or pen with RGB colors like (20, 50, 150) instead of just Brushes.Red, Brushes.Green, I don't see any Brushes or Pens.FromArgb()
Thanks
Printable View
Is it possible to create a brush or pen with RGB colors like (20, 50, 150) instead of just Brushes.Red, Brushes.Green, I don't see any Brushes or Pens.FromArgb()
Thanks
The answer to your question is "no". That said, it is eminently possible to create a Pen or Brush from a Color value, and there is a Color.FromArgb method.
Can you give an example? I have tried many times in VB & C# to create a brush from a color...
Thanks
When you read the documentation for the Brush class you must have missed this bit:As you may or may not have noticed, the properties of the Brushes class that are named after colours all return SolidBrush objects.Quote:
Originally Posted by MSDN
Is anyone starting to think that reading the documentation is a good idea or am I just wasting my time?