Available in the LEADTOOLS Imaging toolkit.
Average example for Visual J++
This example applies an average filter with a 3x3 neighborhood and redisplays the bitmap.
LEAD1.Average( (short) 3 ); LEAD1.ForceRepaint();