This project is read-only.
1
Vote

Color.PackedValue

description

SilverSprite doesn't follow the standard formula for Color.PackedValue. It should be R-G-B-A, NOT B-G-R-A. I found this problem when serializing a custom class between Silverlight (SilverSprite Aplha 2) and .NET 4 (XNA 4.0). You can do a REALLY easy check by using BitConverter to get the bytes for the Color.PackedValue. My results show that in SilverSprite Color.PackedValue is BlueGreenRedAlpha when it should be RedGreenBlueAlpha.
 
Below is a screenshot of the difference of SilverSprite Color.PackedValue on the left, and XNA Color.PackedValue on the right. The right image is the correct version.

file attachments

comments