Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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 );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #storing #RGBA #mysql #db
ADD COMMENT
Topic
Name
5+2 =