• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to remove red color from selected image area ?

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic