Graphics

  • Thread starter Thread starter GTi
  • Start date Start date
G

GTi

I'm trying to get a color value and adjust it by xx% (darken or lighten
the color)
Is there any build in classes for this like:
Color NewColor = AdjustColor(Color.Red, -10%);
OR better, Is there a FillRectangle function that looks like a sylinder
with lighting effect but without the rounded top and bottom
 
Try to use DirectX or OpenGL instead.

I'm trying to get a color value and adjust it by xx% (darken or lighten
the color)
Is there any build in classes for this like:
Color NewColor = AdjustColor(Color.Red, -10%);
OR better, Is there a FillRectangle function that looks like a sylinder
with lighting effect but without the rounded top and bottom
 
Tx Vit,
However I'n not familar with OpenGL.
Do you have any samples available using it?
I don't want to use DirectX - (IHI)

Best regards
GTi
 
Bob said:
See the article on RGB and HSL in the GDI+ FAQ.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

Bob,
Excelent site.
Tx
 
Back
Top