Is there a way to change the coordinates of some points in a GraphicsPath object, leaving the other points where they are?
The GraphicsPath object that is passed to my method will contain a mixture of polygons and lines. My method would like to look something like this:
void UpdateGraphicsPath(GraphicsPath gPath, RectangleF regionToBeChanged, PointF delta)
{
}
GraphicsPath.PathPoints seems to be read-only, so GraphicsPath.PathData.Points. Therefore, I wonder if this is possible.
Perhaps generating a new GraphicsPath object with an updated set of points? How do I know if a point is part of a line or polygon?
If anyone has any suggestions, I would be grateful.
source
share