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
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) |