how to save a GraphicsPath?

  • Thread starter Thread starter Crirus
  • Start date Start date
C

Crirus

Hello

I need to save as a string a graphicPath instance...there is a way of doing
this?

Crirus
 
Iterate through the Points and the Types arrays of the GraphicsPath, saving
them out to string values.

For i as int32 = 0 to in myPath.PathPoints.Length - 1
'Save each myPath.PathPoints(i)
Next

For i as int32 = 0 to in myPath.PathTypes.Length - 1
'Save each myPath.PathTypes(i)
Next

Then, when you need it, reconstruct your graphics path by calling the
constructor that takes an array of points and types:

myPath = new GraphicsPath(PointArray, TypeArray)


If you need more help than this textual descriptive of what to do, let me
know.
 
Ok, thanks, I guess I can handle it...
Do you know if there is a mimimal sat of points that complete my region or
there are more than minimum points needed.... seems that a simple figure
have lots of points there...
 
You can look at the byte array and figure out what the types are of the
points to get some more information - but each of those points is used to
draw your figure.
 
Back
Top