Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Hello dear programmers!
I'm creating a "paintBrush" (like windows have):
I want to create a polyline (what you can call "FreeHand") , anyway, I understood I suppose to have a dynamic array of Points (for instence:
Point curvePoints = new Point;
But I get the following error:
Array creation must have array size or array initializer
Which means I'm doing something wrong in the defintion (I want a dynamic array) How do I define it?
Also You will have my gradedute, if you can show me how should I continue to create the poly line.. (what should I put in mouse move, down , up?)