Underlay example for Visual Basic

This example loads a bitmap into Lead2 and uses it as a tiled underlay for Lead1.

LEAD1.Load "d:\temp\golf.jpg", 0, 0, 1
LEAD2.Visible = False
LEAD2.Load "d:\temp\ulay1.bmp", 0, 0, 1
LEAD1.Underlay LEAD2.Bitmap, UNDERLAY_TILE
LEAD1.ForceRepaint