Available in the LEADTOOLS Imaging toolkit.
PaintDither example for C++ 4.0 and later
This example turns on error diffusion and redisplays the bitmap.
m_Lead1.SetPaintDither(PAINTDITHER_DIFFUSION); m_Lead1.ForceRepaint();