"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:OJ******** ******@TK2MSFTN GP09.phx.gbl...
* "Crirus" <Cr****@datagro up.ro> scripsit: That's the ideea... I need to send it over TCP to a client... so I need to
decompose the GraphicsPath to a sort of string thatc an be reconstructed as
GraphicsPath on the other side
Thanks -- now I understand what you want: You want a string
representation of the 'GraphicsPath'. Having a quick look at the
'GraphicsPath' class shows the properties 'PathData', 'PathPoints' and
'PathTypes'. Maybe looping though the collection and converting the
data to a string will be a good way to convert the 'PrapthicsPath' to a
string. You can use a 'StringBuilder' to create the text
representation.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Best way to do this would pound Microsoft and make this object serializable
**grin**...
Other way to do it would loop through the all properties, property arrays, et
cetera and store only those values which are not default values. This would keep
the resulting string value minimal. Then compress this using a string compresser
before sending the data.
Mythran
(probably already knew all this anyways)