MapSuiteGisEditor/GisEditorPluginCore/Shares/UIs/Controls/SolidColorPicker/ColorHelper.cs
/// <summary>
/// Convert an unsigned int (32bit) to <see cref="Color"/>
/// </summary>
/// <param name="color"></param>
/// <returns></returns>
Convert an unsigned int (32bit) to
Convert an unsigned int ( 32bit ) to
public static Color UIntToColor(UInt32 color)
        {
            var a = (byte)(color >> 24);
            var r = (byte)(color >> 16);
            var g = (byte)(color >> 8);
            var b = (byte)(color >> 0);
            return Color.FromArgb(a, r, g, b);
        }
public static Color UIntToColor ( UInt32 color ) { var a = ( byte ) ( color >> 24 ) ; var r = ( byte ) ( color >> 16 ) ; var g = ( byte ) ( color >> 8 ) ; var b = ( byte ) ( color >> 0 ) ; return Color . FromArgb ( a , r , g , b ) ; }
Convert an unsigned int (32bit) to
Convert an unsigned int ( 32bit ) to
None
color
UInt32
None