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


Xceed.SmartUI.v3.6 Assembly > Xceed.SmartUI Namespace > SmartPaint Class > CreateBitmapMask Method : CreateBitmapMask(Color,Bitmap) Method
The color to use to create the masked bitmap. All non-transparent colors will be replaced by maskColor.
The bitmap for which to create a mask.
Creates a mask of the specified bitmap and color.
Syntax
'Declaration
 
Public Overloads Function CreateBitmapMask( _

   ByVal maskColor As Color, _

   ByVal originalBitmap As Bitmap _

) As Bitmap
'Usage
 
Dim instance As SmartPaint

Dim maskColor As Color

Dim originalBitmap As Bitmap

Dim value As Bitmap

 

value = instance.CreateBitmapMask(maskColor, originalBitmap)
public Bitmap CreateBitmapMask( 

   Color maskColor,

   Bitmap originalBitmap

)

Parameters

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