一个简单的IDE例如油漆刷 [英] A Simple IDE e.g. paint brush
问题描述
亲爱的家伙!
请帮助我
我需要开发具有以下功能的IDE的帮助.
例如油漆刷(但圆不会在表面上画/不痛的地方,它将是一个对象)
A)一个带有单个对象矩形"的工具栏
b)单击工具栏上的,并在表面区域和/或
上创建矩形
通过鼠标绘制矩形,我应该能够
b1)调整矩形的大小
b2)将矩形移动到曲面上的任意位置
b3)以正确的方式设置属性(属性托盘)
c)将一个矩形放到另一个矩形中作为子元素
d)移动父矩形时,子矩形应根据父矩形移动
您可以提供可获得帮助的链接(尽管有部分帮助)
在此先感谢
关于
dear grus !
kindly help me
I want help to develop an IDE, with following features.
for example a paint brush (but where the circle will not draw/pain on surface, it will be an object)
A) a Tool bar, with single object "rectangle"
b) click on toolbar, and createrectangle on surface area and/or
draw rectangle through mouse and I should be able to
b1) resize the rectangle
b2) move the rectangle anywhere on surface
b3) set properties in proper way (property pallet)
c) drop a rectangle in another rectangle as child
d) when move parent rectangle child should move according to parent rectangle
you may provide the links where the help is available (although in parts)
thanks in advance
Regards
推荐答案
您可以下载Gimp,然后浏览源代码.
http://www.gimp.org/ [ ^ ]
You could download Gimp and then go through the source code.
http://www.gimp.org/[^]
您可以做的比画布好得多,但简单得多.使用WPF和System.Windows.Controls.Canvas
进行矢量图形处理!您可以将矢量图形另存为XAML(或按喜好序列化对象),还可以选择将其转换为位图.这是一种相对简单(无论如何都是可行的)和可维护的方法.
带有System.Windows.Forms
的GDI(GDI +)将需要付出更多的努力才能获得更少的功能和性能-我不建议这样做.
—SA
You can do much better than canvas yet much simpler. Use WPF andSystem.Windows.Controls.Canvas
to do vector graphics! You can save vector graphics as XAML (or serialize object to your liking) and optionally convert it to bitmaps. This is a relatively easy (quite feasible anyway) and maintainable way.
GDI (GDI+) withSystem.Windows.Forms
will need much more effort for less features and performance — I would not recommend it.
—SA
您将只需要一个链接 [^ ]
这篇关于一个简单的IDE例如油漆刷的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!