Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone

I am working on a project where I need to get the inkcanvas entered input to the centre of the inkcanvas even if it is not in the centre

C#
for (int i = 0; i < strokes.Count; i++)
                {
                    str.StrokeCollection[i] = new Point[this.inkCanv.Strokes[i].StylusPoints.Count];

                     for (int j = 0; j < strokes[i].StylusPoints.Count; j++)
                    {
                        str.StrokeCollection[i][j] = new Point();
                        str.StrokeCollection[i][j].X = strokes[i].StylusPoints[j].X;
                        str.StrokeCollection[i][j].Y = strokes[i].StylusPoints[j].Y;
                    }
                }


How to determine the centre of the inkcanvas and move the strokecollection points accordingly

Please help

Thankyou
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900