Click here to Skip to main content
15,894,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have three elipse/

C#
graphics.FillEllipse(Brushes.Blue, 70, 70, 200, 200);  
graphics.FillEllipse(Brushes.Red, 190, 70, 200, 200); 
graphics.FillEllipse(Brushes.Green, 130, 170, 200, 200); 


How to changes in the intensity of each of the three RGB color, and add this three color to one resulting color
Posted
Comments
BillWoodruff 12-Oct-11 21:53pm    
Please clarify what you mean by "intensity," and "add this three color" ?
Sergey Alexandrovich Kryukov 12-Oct-11 22:54pm    
In optics, there is no such thing as "intensity". Also, RGB value is pretty specific measure, it does not correspond to any of the photometric values. It is designed to provide impression of subjectively linear gradation.
--SA

1 solution

Have a look here at this tutorial: http://www.aspfree.com/c/a/C-Sharp/Color-Transformation-in-C-sharp-GDI-plus-Programming-1/[^] and here a little something from MSDN: http://msdn.microsoft.com/en-us/library/system.drawing.imaging.colormatrix(v=VS.100).aspx[^].

Do you just want the additive the color or are your thinking about something like it's being discussed here: http://stackoverflow.com/questions/398224/how-to-mix-colors-naturally-with-c[^]?

Regards,

—MRB
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 12-Oct-11 22:55pm    
Good links, my 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900