| Reply | « Previous Thread | Next Thread » |
|
i have a question.
Suppose i have a black and white image which is shaded i want to change the color of this image and still maintain the shading can i do this through codes example i have created an image of a car now i want to change the color of this car through codes so that i have only one iage and can show it as diffrent colored cars any help will be appreciated |
|
It's possible in theory. You can use getPixels() to obtain the pixel data in an array and manipulate that data. But to keep the shading would be kind of tricky. For a simpler example you can check this thread. Take that an then start messing around with the color channels and you might get the result you need.
shmoove |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|