简体   繁体   English

绘制对象并对其进行处理的最佳方法是什么?

[英]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.

相关问题 什么是处理异常以及如何在asp.net中处理它们的最佳方法 - What's the best way to handle the exceptions and how to deal with them in asp.net 处理DBNull的最佳方法是什么? - What is the best way to deal with DBNull's 在 ViewModel 中处理对话框的最佳方式是什么? - What is the best way to deal with dialogs in a ViewModel? 将电影对象保存在其他文件中并将它们与实际收藏夹中的电影对象相关联的最佳方法是什么? - What's the best way to save movie objects inside other files and associate them with the ones in the actual collection? 在进行TDD时,处理转换方法的最佳方法是什么? - What is the best way to deal with conversion methods when doing TDD? 在策略模式中,处理共享行为的最佳方法是什么? - In the strategy pattern, what's the best way to deal with shared behaviour? 在C#中处理共享dll的最佳方法是什么? - What is the best way to deal with shared dlls in C#? 处理kludgy接口层次结构(MSHTML)的最佳方法是什么? - What is the best way to deal with kludgy interface hierarchies (MSHTML)? 什么是处理几列更新的最佳方法 - What's the best way to deal with the updating of several columns 划分两个TimeSpan对象的最佳方法是什么? - What is the best way to divide two TimeSpan objects?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM