SetRgnFromMask example for Visual Basic
Dim RasterIO As New LEADRasterIO
' This example sets a region into a bitmap using a 1-bit black-and-white mask image.
RasterIO.Load LEADRasterView1.Raster, "C:\PARROTS.JPG", 0, 0, 1
RasterIO.Load LEADRasterView2.Raster, "c:\test2.jpg", 0, 0, 1
LEADRasterView1.Raster.MaskBitmap = LEADRasterView2.Raster.Bitmap
LEADRasterView1.Raster.SetRgnFromMask L_RGN_SET
LEADRasterView1.Raster.MaskBitmap = 0