[英]What is the best way to draw objects and deal with them?
Hi, 你好
I want to draw on my PictureBox and then deal with those drawings that i created. 我想在我的PictureBox上绘制,然后处理我创建的那些图纸。
is it a good way to store their points in an array and deal with this array??. 这是将它们的点存储在数组中并处理该数组的好方法吗?
**Or the better way is to make them objects and deal with these objects?.**And if so could you please put me on the head of way to make that??. **或者更好的方法是使它们成为对象并处理这些对象?。**如果可以的话,请让我走上前途。
Thank you my really teachers. 谢谢我的老师。
Thank you very much. 非常感谢你。
If elements of the drawing might change then an object (Shape) is best. 如果工程图的元素可能会更改,则最好使用对象(形状)。 But a collection of points is an object as well.
但是,点的集合也是一个对象。
The main alternative would be a layered approach with a separate bitmap with a transparent background holding the points. 主要的替代方法是分层方法,使用单独的位图,并在透明背景上保留这些点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.