Unicode Controls & Classes for VB6 - Version 4

clsPalette.CreateOptimal Method

Creates an optimal palette from a True Color image

Syntax
Public Sub CreateOptimal (ByVal cDIB As clsDIBSection, _
Optional ByVal lPalSize As Long = 236, _
Optional ByVal nLevels As Long = 6, _
Optional ByRef lResColor As Variant)
Parameters
Parameter Description
ByVal cDIB As clsDIBSection The dib section containing the imge
Optional ByVal lPalSize As Long = 236 Number of colors
Optional ByVal nLevels As Long = 6 Precision
Optional ByRef lResColor As Variant Reserved Color, you can use this color as the transparent color
Remarks