[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Indexed4bppBitmap.CompactPalette

CompactPalette Method

CompactPalette(bool)

Compacts the image palette to 8 bits per color channel and returns the palette as an array of 32-bit ARGB values.

Declaration
public uint[] CompactPalette(bool allowSemitransparency = false)
Public Function CompactPalette(Optional allowSemitransparency As Boolean = False) As UInteger()
Parameters
Type Name Description
bool allowSemitransparency

Indicates if the alpha channel supports values between 0 and 255 (if true), or the boundary values only (if false).

Returns
Type Description
uint[]