This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android 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: 4167
    
  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 ?
 
Similar Threads
rectangle from image
Change color of image
Changing Color of a selectedtext in TextArea
Not able to apply decode function to my query
Images on Applet?