This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 3035
    
    4

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 ?
 
Similar Threads
Changing Color of a selectedtext in TextArea
Change color of image
Images on Applet?
Not able to apply decode function to my query
rectangle from image