System.Drawing.Drawing2D.GraphicsPath.Flatten C# (CSharp) Method

Flatten() public method

public Flatten ( ) : void
return void
        public void Flatten()
        {
            Flatten (null, 0.25f);
        }

Same methods

GraphicsPath::Flatten ( Matrix matrix ) : void
GraphicsPath::Flatten ( Matrix matrix, float flatness ) : void

Usage Example

Exemplo n.º 1
0
        public Analyzer(double meanX, double meanY, GraphicsPath path)
        {
            Counters = new RunningCount[Enum.GetValues(typeof(AnalysisMetric)).Length];

            foreach(AnalysisMetric metric in Enum.GetValues(typeof(AnalysisMetric)))
                Counters[(int)metric] = new RunningCount(metric);

            MeanX = meanX;
            MeanY = meanY;

            path.Flatten();

            using(GraphicsPathIterator PathIterator = new GraphicsPathIterator(path))
            {
                using(GraphicsPath Subpath = new GraphicsPath())
                {
                    Paths = new List<PointF[]>();

                    bool Closed;

                    while(PathIterator.NextSubpath(Subpath, out Closed) > 0)
                    {
                        Paths.Add(Subpath.PathPoints);
                        Subpath.Reset();
                    }
                }
            }
        }
All Usage Examples Of System.Drawing.Drawing2D.GraphicsPath::Flatten