Applies palette index mapping for one or several indices
on a 1-, 4- or 8-bit palletized image.
Namespace:
FreeImageAPI
Assembly:
FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public uint ApplyPaletteIndexMapping(
byte[] srcindices,
byte[] dstindices,
uint count,
bool swap
) |
Visual Basic (Declaration) |
---|
Public Function ApplyPaletteIndexMapping ( _
srcindices As Byte(), _
dstindices As Byte(), _
count As UInteger, _
swap As Boolean _
) As UInteger |
Parameters
- srcindices
- Type: array<
System..::.Byte
>[]()[]
Array of palette indices to be used as the mapping source.
- dstindices
- Type: array<
System..::.Byte
>[]()[]
Array of palette indices to be used as the mapping destination.
- count
- Type: System..::.UInt32
The number of palette indices to be mapped. This is the size of both
srcindices and dstindices
- swap
- Type: System..::.Boolean
If true, source and destination palette indices are swapped, that is,
each destination index is also mapped to the corresponding source index.
Return Value
The total number of pixels changed.
Exceptions
Version Information
FreeImage.NET
Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1
See Also