Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

changing colors

 
bab javier
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello again!
let's say I have a png file and I want to change all the red colors to another color. is it possible? what's the code?
tnx again guys
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
let's say I have a png file and I want to change all the red colors to another color. is it possible? what's the code?

Where are you processing the image? I don't know how to do that in the mobile, but on the server-side you can use Java Advanced Imaging for manipulating the PNG image.
Here's my attempt to code a sample using the JAI API (not compiled, no guarantees of any sort):
 
bab javier
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi! thanks for the tip.
i have to change it in the mobile. its part of a game that i'm developing
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!