Swaps two specified palette indices on a 1-, 4- or 8-bit palletized image.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public uint SwapPaletteIndices(
	byte index_a,
	byte index_b
)
Visual Basic (Declaration)
Public Function SwapPaletteIndices ( _
	index_a As Byte, _
	index_b As Byte _
) As UInteger
Visual C++
public:
unsigned int SwapPaletteIndices(
	unsigned char index_a, 
	unsigned char index_b
)

Parameters

index_a
Type: System..::.Byte
One of the two palette indices to be swapped.
index_b
Type: System..::.Byte
The other of the two palette indices to be swapped.

Return Value

The total number of pixels changed.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also