Transparent example for Visual Basic

    'set the backcolor of the control to BLUE
    LEADRasterView1.BackColor = vbBlue
    MsgBox "Pause"
    'create a 100x100 image
    LEADRasterView1.Raster.CreateBitmap 100, 100, 24
    'fill some of the image with RED, the rest with black
    LEADRasterView1.AutoRepaint = False
    For y = 0 To 99
        For x = 0 To 24
            LEADRasterView1.Raster.Pixel(x, y) = vbRed
        Next
        For x = 25 To 74
            LEADRasterView1.Raster.Pixel(x, y) = vbBlack
        Next
        For x = 75 To 99
            LEADRasterView1.Raster.Pixel(x, y) = vbRed
        Next
    Next
    LEADRasterView1.AutoRepaint = True
    MsgBox "Pause"
    'now, set Red as the transparent color
    LEADRasterView1.Raster.BitmapTransparentColor = vbRed
    LEADRasterView1.Raster.BitmapEnableTransparency = True
    MsgBox "Pause"
    'now set the control transparent
    LEADRasterView1.Transparent = True