Average example for Delphi

This example applies an average filter with a 3x3 neighborhood and redisplays the bitmap.

Lead1.Average(3);
Lead1.ForceRepaint;