Storing rgba in mysql db

This article is tagged with: Storing rgba in mysql db and mysql

storing RGBA in mysql db

UInt32 rgba = color.R | ( color.G << 8 ) | ( color.B << 16 ) | ( color.A << 24 );
Color color = Color.FromRgba( rgba & 0xFF, ( rgba >> 8 ) & 0xFF, ( rgba >> 16 ) & 0xFF, ( rgba >> 24 ) & 0xFF );

This article is tagged with: Storing rgba in mysql db and mysql