Greetings everyone,
I'm developing a system for image effects using the Java 2D package. I'm
having some troubles to make things work as they should.
I created a function that receives as parameters an index to an image
stored in a stack and a key to an operator stored in a hashtable. the
function body is this:
BufferedImageOp imageOp = imageOperators.getImageOperator(operatorKey);
Image image = this.getImage(imageIndex);
BufferedImage bufferedImage = new
BufferedImage(
image.getWidth(null), image.getHeight(null),
BufferedImage.TYPE_INT_RGB); image = imageOp.filter(bufferedImage,
null);
return image
If I apply a Blur effect to the image, nothing happens to the image, it is
returned as it was passed to the function. If the operator chosen is a
LookUp one for inverting the red component the image is returned with all
pixels in red ( this should happen if the image had all pixels in black,
but it doesn't ).
I'd be very glad if one could give me some help or send me some code that
does something like that.
Thanks in advance,
Eduardo Melo.
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/