Click here to Skip to main content
15,902,112 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
ı want to create color picture from gray picture wıth c # how can ı do ıt. ıt ıs sımple code but ı dont know how can ı do ıt
Posted
Comments
joshrduncan2012 17-Apr-13 16:43pm    
Great question to ask google.
[no name] 17-Apr-13 16:44pm    
A better question is why do you keep asking questions and then deleting them when you get answers? What have you tried to do for yourself? Have you read the posting guidelines? Where is the code the you have written that demonstrates your problem? What problem is that you are experiencing?
Sergey Alexandrovich Kryukov 17-Apr-13 16:49pm    
You should always tag a imaging library you want to use. It could be System.Drawing (based on GDI+), WPF (based on DirectX) or something else, 3rd-party.
—SA

 
Share this answer
 
Comments
arifemutlu 17-Apr-13 16:50pm    
thank u so much ı want to learn ask to ask sorry about thıs questıon
Maciej Los 17-Apr-13 16:55pm    
It should be enough for start ;)
+5
Sergey Alexandrovich Kryukov 17-Apr-13 16:59pm    
If you see my answer, you will see that the topic is more complex than that... :-)
—SA
CPallini 18-Apr-13 3:22am    
I am aware of. That's just a 'basic' (rough) idea. The question make me guess he/she has no experience on the matter. :-)
Sergey Alexandrovich Kryukov 18-Apr-13 9:53am    
Sure. Moreover, it's most likely that OP really needs the simplest possible way only.
—SA
In addition to Solution 1:

This is just one of basic methods. The problem is not as simple as many think. In professional photography, real re-touch masters choose different approaches for different scenes, depending on the purely artistic goals. One of the method is to put saturation down. Another very popular method is to take just one of the R, G or B channels; which one? again, depending on the scene. The generalization of this approach is using two or three channels as gray, balancing them with different weights. Other effects and filters are applicable. And you can implement any of these approaches.

Basically, the answer depends on the imaging library you want to use. Please see my comment to the question. For some more detail, please see my recent answer:
how to ımage process wıth c#[^].

Next time, please don't forget to tag your question properly.

Also, I highly recommend to look for a great open-source library AForge.NET:
http://en.wikipedia.org/wiki/AForge.NET[^],
http://www.aforgenet.com/[^].

For the problem you are interested in, putting this library to use can take just a few minutes. The library is well documented and complete with plenty of easy-to-understand code samples. Its author, Andrew Kirillov, is the CodeProject member. Please see his articles on the topic:
http://www.codeproject.com/Articles/Andrew-Kirillov#articles[^].

Good luck,
—SA
 
Share this answer
 
v2
Comments
Maciej Los 17-Apr-13 17:04pm    
5!!!
What can i say more, Maestro?
Sergey Alexandrovich Kryukov 17-Apr-13 17:05pm    
Thank you, but please don't flatter me... :-)
—SA
Maciej Los 17-Apr-13 17:09pm    
Who, me?
;)
Sergey Alexandrovich Kryukov 17-Apr-13 17:28pm    
Not, me. :-)
—SA
arifemutlu 17-Apr-13 17:17pm    
thank u so much

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