[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcBitmap.MergePalettes

MergePalettes Method

MergePalettes(int, params uint[][])

Merges sorted arrays of unique colors in 32-bit ARGB format (returned from ExtractColors(Rectangle?))

Declaration
public static uint[] MergePalettes(int minimalAlpha, params uint[][] palettes)
Public Shared Function MergePalettes(minimalAlpha As Integer, ParamArray palettes As UInteger()()) As UInteger()
Parameters
Type Name Description
int minimalAlpha

Palette entries with Alpha less than the specified value (between 0 and 255) are skipped.

uint[][] palettes

A set of palettes with sorted arrays of unique colors.

Returns
Type Description
uint[]

A sorted array with unique colors presented in one palette at least.