You Are Here:

Community: Developer Discussion Boards

#1 Old coloring graphics through coding - 2004-05-27, 16:05

Join Date: May 2004
Posts: 1
jayboy
Offline
Registered User
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
Reply With Quote

#2 Old 2004-05-27, 16:21

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia