File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes How to remove red color from selected image area ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to remove red color from selected image area ?" Watch "How to remove red color from selected image area ?" New topic
Author

How to remove red color from selected image area ?

Manoj Tare
Greenhorn

Joined: Feb 04, 2003
Posts: 26
How to remove red color from selected image area
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

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


Steve
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to remove red color from selected image area ?