Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problem with delete blur effect on an image

843805Jun 9 2006 — edited Jun 10 2006
I am developing an application in java that allow to opacify/blur an image and in a second time to remove the opacify/blur on the image in such way to obtain the original image. My problem is that I can insert opacify/blur on the image but I can�t remove the opacify/blur on the image. To opacify/blur the image I used the class �ConvolveOp�. Someone can help me please? THANKS to everybody.

This is the piece of my program that allow to blur/opacify an image:

public void blur() {
float elements []= {0, 0.2f, 0, 0.2f, 0.2f, 0.2f, 0, 0.2f, 0};
convolve(elements);
}
private void convolve(float[] elements) {
Kernel kernel = new Kernel(3, 3, elements);
ConvolveOp op = new ConvolveOp(kernel,ConvolveOp.EDGE_NO_OP,null);
filter(op);
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 8 2006
Added on Jun 9 2006
1 comment
140 views