Available in the LEADTOOLS Imaging toolkit.
Average example for C++ 4.0 and later
This example applies an average filter with a 3x3 neighborhood and redisplays the bitmap.
m_Lead1.Average(3); m_Lead1.ForceRepaint();