ComponentOne Bitmap for WinForms
C1.Win.Bitmap.4.5.2 Assembly / C1.Win.Bitmap Namespace / C1Bitmap Class / CreatePredefinedPalette Method
The desired pre-defined palette type.
The optional transparent color to add to the palette. If no transparent color is needed, use false. When initializing to a grayscale or black and white palette, set this parameter to false.

In This Topic
    CreatePredefinedPalette Method
    In This Topic
    Creates one of the pre-defined palettes specified by PaletteType and optionally adds a transparent color.
    Syntax
    'Declaration
     
    Public Function CreatePredefinedPalette( _
       ByVal paletteType As PaletteType, _
       ByVal addTransparentColor As System.Boolean _
    ) As C1Bitmap.Palette
    public C1Bitmap.Palette CreatePredefinedPalette( 
       PaletteType paletteType,
       System.bool addTransparentColor
    )

    Parameters

    paletteType
    The desired pre-defined palette type.
    addTransparentColor
    The optional transparent color to add to the palette. If no transparent color is needed, use false. When initializing to a grayscale or black and white palette, set this parameter to false.
    Remarks
    For palettes with less than 256 entries, the transparent entry is added to the end of the palette (that is, a 16-color palette becomes a 17-color palette). For palettes with 256 colors, the transparent palette entry will replace the last entry in the pre-defined palette.
    See Also