Oilify example for Visual Basic

This example applies an oil-painting effect and repaints the image. The progress event is enabled because this the Oilify method, with a neighborhood of 10, is slow.

Lead1.EnableProgressEvent = True
Lead1.Oilify 10
Lead1.ForceRepaint