Show / Hide Table of Contents

Method ColorInt.SwapRB(+ 1 overload)


Overload

Converts color from ARGB (0xAARRGGBB) to ABGR (0xAABBGGRR) or vice versa (swaps the red and blue bytes). ARGB is used in .NET, GDI+ and HTML/CSS. ABGR is used by most Windows API; aka COLORREF.

public static int SwapRB(int color)
Parameters
color  (int)
Returns
int

Overload(top)

Converts color from ARGB (0xAARRGGBB) to ABGR (0xAABBGGRR) or vice versa (swaps the red and blue bytes). ARGB is used in .NET, GDI+ and HTML/CSS. ABGR is used by most Windows API; aka COLORREF.

public static uint SwapRB(uint color)
Parameters
color  (uint)
Returns
uint