Available in the LEADTOOLS Imaging toolkit.
Mosaic example for Visual J++
This example applies a mosaic effect with 8x8 tiles and redisplays the bitmap.
LEAD1.Mosaic( (short) 8 ); LEAD1.ForceRepaint();