How to Serialize a WPF Drawing?
- by Néstor Sánchez A.
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!