Xceed SmartUI for WinForms v3.6 Documentation
CreateBitmapMask(Color,Int32) Method


Xceed.SmartUI.v3.6 Assembly > Xceed.SmartUI Namespace > SmartPaint Class > CreateBitmapMask Method : CreateBitmapMask(Color,Int32) Method
The color to use to create the masked bitmap. All non-transparent colors will be replaced by maskColor.
The index of the image, within the ImageList for which to create a mask.
Creates a mask of the bitmap specified by the index using the specified color.
Syntax
'Declaration
 
Public Overloads Function CreateBitmapMask( _
   ByVal maskColor As Color, _
   ByVal imageIndex 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)
public Bitmap CreateBitmapMask( 
   Color maskColor,
   int imageIndex
)

Parameters

maskColor
The color to use to create the masked bitmap. All non-transparent colors will be replaced by maskColor.
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.
Requirements

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

See Also

Reference

SmartPaint Class
SmartPaint Members
Overload List