Your drawings are Objects in GDI+
|
مشرف
تاريخ التسجيل: 2006-02-19 مشاركات: 2892
الجامعة: دمشق الكلية: الهندسة المعلوماتية المرحلة: السنة الثالثة
|
Hi all .NET programmers, I developed a small class that lets you manipulate your drawings as Objects, I mean that you can define a rectangle and just write Rectangle.Move(x,y) and it'll move to the given position without much hard-coding, I had a lot of problems in drawing then moving just one small piece of the drawing without re-drawing the whole scene again, so that's when the idea came to me, I defined (Rectangle, Ellipse, Lines), but you can also difine your own shape, you just have to inherit the base class (MagicGraphics.Shape) and you'll have to write your own Render sub (void) and ToString function, and you can add as much as you want of properties. All the shapes you draw must be placed in a ShapeContainer that handles the drawing according to the Z-Order between shapes The following links are for the class and the testing project in VB .Net 2005: The Class - The Testing Project. Please tell me your opinions, and please notice that the class hasn't finished yet but I liked to share the first build with you. Salam.
|
| |
دخول أو تسجيل لإرسال التعليقات | قراءة: 369 |
|
مشرف
تاريخ التسجيل: 2006-02-19 مشاركات: 2892
الجامعة: دمشق الكلية: الهندسة المعلوماتية المرحلة: السنة الثالثة
|
I guess that nobody is interested, ha?
|
| |
دخول أو تسجيل لإرسال التعليقات |
|
عضو فعال
تاريخ التسجيل: 2004-03-28 مشاركات: 1291
الجامعة: دمشق الكلية: الهندسة المعلوماتية المرحلة: ماجستير الاختصاص: هندسة برمجيات
|
First thing: What did u read?
this topic is bigger than first year student, and thiniking about updating the shape instead of redrawing it is a big issue facing all programmers.
I promise i will spend my free time to test it, i have been working on drawing 3d shapes for one year, i drew them under Coin3d library under C++, so we will share the fun together 
{وماكان الله ليعذبهم وأنت فيهم وماكان الله معذبهم وهم يستغفرون}
|
| |
دخول أو تسجيل لإرسال التعليقات |
|
مشرف
تاريخ التسجيل: 2006-02-19 مشاركات: 2892
الجامعة: دمشق الكلية: الهندسة المعلوماتية المرحلة: السنة الثالثة
|
I liked to re-open this topic again. Did anyone try it?
|
| |
دخول أو تسجيل لإرسال التعليقات |
|