绘制物体和处理它们的最佳方法是什么?
嗨,
我想在 PictureBox 上绘图,然后处理我创建的那些绘图。
将它们的点存储在数组中并处理该数组是否是一个好方法??
**或者更好的方法是让它们成为对象并处理这些对象?。**如果可以的话,请让我负责制作它??
谢谢我真正的老师们。
非常感谢。
Hi,
I want to draw on my PictureBox and then deal with those drawings that i created.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果绘图的元素可能会发生变化,那么对象(形状)是最好的。 但点的集合也是一个对象。
主要的替代方案是采用分层方法,使用单独的位图和透明背景来保存点。
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.