You Are Here:

Community: Developer Discussion Boards

#1 Old Dynamically change image color, is it possibile? - 2004-06-04, 12:48

Join Date: Mar 2003
Posts: 13
Cinghius
Offline
Registered User
Hello all,
in order to save space for images in my games, I'd like to have only one sprite (ie: a car) and dynamically change it color manipulating the image's pixels.

Is it possible? And, if somebody found the solution to this question, could he please give me some guidelines about how should I implement this functionality?

Thank you all,

Andrea
Reply With Quote

#2 Old 2004-06-04, 20:51

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
Maybe this thread can help. The code will only work on Nokias but it can be ported to any MIDP 2.0 device, and to many MIDP 1.0 devices that have similar extension APIs.

For a pure MIDP 1.0 solution you could try to manipulate the header of the png where the pallete information is held. It's not an easy technique, and you'll need to know the png format pretty well but it's possible. I haven't tried it myself but I talked to someone that had accomplished that.

shmoove
Reply With Quote

#3 Old Thank you... - 2004-06-07, 09:57

Join Date: Mar 2003
Posts: 13
Cinghius
Offline
Registered User
Thanks a lot, I'll look at the thread carefully!
Reply With Quote

#4 Old 2004-06-16, 14:07

Join Date: Nov 2003
Posts: 145
dotcdotc's Avatar
dotcdotc
Offline
Regular Contributor
shmoove: how can I get the header/ pallate information of a png?
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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ