Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType.BarCode Namespace / BarCodeHelper Class / ConvertBitmap Method
Input bitmap to convert
Color of the foreground
Color of the background


In This Topic
    ConvertBitmap Method
    In This Topic
    Converts the 24-bpp bitmap to a 1-bpp bitmap.
    Syntax
    'Declaration
     
    
    Public Shared Function ConvertBitmap( _
       ByVal bmp1 As Bitmap, _
       ByVal foreColor As Color, _
       ByVal backColor As Color _
    ) As Bitmap
    'Usage
     
    
    Dim bmp1 As Bitmap
    Dim foreColor As Color
    Dim backColor As Color
    Dim value As Bitmap
     
    value = BarCodeHelper.ConvertBitmap(bmp1, foreColor, backColor)
    public static Bitmap ConvertBitmap( 
       Bitmap bmp1,
       Color foreColor,
       Color backColor
    )

    Parameters

    bmp1
    Input bitmap to convert
    foreColor
    Color of the foreground
    backColor
    Color of the background
    See Also