| Visual Basic (Declaration) | |
|---|---|
Public Function CreateMaskFromRegion() As RasterImage  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
 | |
| C# | |
|---|---|
public RasterImage CreateMaskFromRegion()  | |
| C++/CLI | |
|---|---|
public: RasterImage^ CreateMaskFromRegion();  | |
Return Value
The newly created RasterImage which will be updated with a 1-bit, black-and-white image, where pixels from the region are white, and all others are black.This example will load an image, sets a color region using black, and then creates a 1-bit mask image from that image and saves it to disk . 
For more information, refer to Implementing Transparency.
For more information, refer to Creating a Region.
For more information, refer to Saving A Region.
For more information, refer to Working with the Existing Region.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family