This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to remove red color from selected image area ?  RSS feed

 
Manoj Tare
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to remove red color from selected image area
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create a subclass of the java.awt.RGBImageFilter (abstract) class. You will have to override the filterRGB(int x, int y, int rgbValue) methodto remove the red component.
Beware, I have used this before and it was VERY sklow. It reduced animation rates from about 10fps to 2 fps. (for special reasons I had to filter before each frame was displayed in order to maintain the underlying values).
Steve
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!