Need serialize bitmap image silverlight
问题 I need serialize custom class with bitmapImage(tagged by xmlIgnore right now). I'm using xmlSerialization, but I think thats bad.Do you have some ideas how can I serialize my class??Probably you can provide some simple example?? class X { private BitmapImage someImage; public BitmaImage{get;set} } Actually later I will be use WCF Service. Thanks) 回答1: You can expose the image as a byte array, e.g.: public byte[] ImageAsBytes { get { return BytesFromImage(someImage); } set { someImage =