FreeImage.NET Class Library Reference
FreeImageBitmapSwapColors Method |
Swaps two specified colors on a 1-, 4- or 8-bit palletized
or a 16-, 24- or 32-bit high color image.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public uint SwapColors( RGBQUAD color_a, RGBQUAD color_b, bool ignore_alpha )
Parameters
- color_a
- Type: FreeImageAPIRGBQUAD
One of the two colors to be swapped. - color_b
- Type: FreeImageAPIRGBQUAD
The other of the two colors to be swapped. - ignore_alpha
- Type: SystemBoolean
If true, 32-bit images and colors are treated as 24-bit.
Return Value
Type: UInt32The total number of pixels changed.
See Also