i think the codes i modified to
[code]float[] matrix = new float[numbertodivide];
for (int i = 0; i < numbertodivide; i++)
matrix[i] = 1.0f/numbertodivide*1.0f;[/code]
it does not blur.

i changed the picture, it seems to only dim ( reduce the intensity ).

i suspect the code in wrong "matrix[i] = 1.0f/numbertodivide*1.0f;" some how the "f" which i think means float is not working correctly when i change the codes from

original code from http://www.huxtable.com/ip/blurring.html
[code]float[] matrix = new float[400];
for (int i = 0; i < 400; i++)
matrix[i] = 1.0f/400.0f;
[/code]

thanks for your help!

/htdocs/ntnujava/ejsuser/14019/users/sgeducation/lookang/ImageTestfkh_pkg/ImageTestfkh.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(825.7kB):double click downloaded file to run it. (2 times by 2 users) , Download EJS source (1 times by 1 users) View EJS source