How to Serialize a WPF Drawing?

Posted by Néstor Sánchez A. on Stack Overflow See other posts from Stack Overflow or by Néstor Sánchez A.
Published on 2010-05-13T20:57:28Z Indexed on 2010/05/13 22:34 UTC
Read the original article Hit count: 347

Filed under:
|
|

Hi, maybe I'm missing something.

I believed that WPF vector-based Drawings (like DrawingGroup, DrawingGeometry, etc.) were ready to be serialized. But they are not. So, should I navigate all these drawing childrens, and store they points, lines, brushes (that also are not serializable) and so on, and then made my custom serialization?

Is really that difficult or I'm missing something pretty obvious?

I mean, even serializing Bitmap images is easy. I thinked serializing vector-based drawings were easier (no quality loss, just descriptive info, no massive data).

Thanks for your practical answers, alternate-way suggestions and comments!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about drawing