Click here to Skip to main content
15,793,546 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Every one,
i am using .net 4.0 ,web application i have image of car,
i have to select a color[blue,red,yellow,white,black] the car image color change.

example. if i select red color, car color change red color.
if i select white color means, car color change white color.

how to write to code?c# with
Sebastian Gruchacz 29-Nov-11 9:00am    
It looks for me, like you don't have even the slightest idea about what you are askingfor...

This would only work (and is pretty simple to implement) if color of your car is a solid one - no gradients, no reflections, no shadows - just one pure red, blue or whatever.

Then you could just replace or pixels of specific color on the picture with other color.

If you wish to write code that will automagically find the shape of a car on the picture and correctly modify all shades of red into adequate shades of blue... Well, good luck with that.

Better use Photoshop.

This is a simple logic my friend. You will cross a river with this one. You could simply download 5 cars of different colors if you want. Then probably have a DropDownList or a RadioButton and a Submit button. Make if/else conditions or switch case to meet your desired output.

Share this answer

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