Creates a mask of the bitmap specified by the index using the specified color.
'Declaration
Public Overloads Function CreateBitmapMask( _
ByVal As Color, _
ByVal As Integer _
) As Bitmap
'Usage
Dim instance As SmartPaint
Dim maskColor As Color
Dim imageIndex As Integer
Dim value As Bitmap
value = instance.CreateBitmapMask(maskColor, imageIndex)
Parameters
- maskColor
- The color to use to create the masked bitmap. All non-transparent colors will be replaced by .
- imageIndex
- The index of the image, within the ImageList for which to create a mask.
Return Value
A
System.Drawing.Bitmap representing the masked bitmap.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2