المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Filling a cylinder



C# Programming
03-19-2010, 05:21 PM
Hi, I'm a newbie in drawing using C#.

I want to create a filled cylinder or a tube.

So what I do is I created a closed curve using 4 points (using FillClosedCurve) with 0.8f tension. Then I translated the same closed curve vertically to create a sense of height. But then how do I fill the sides?

Here is an image to illustrate my explanation: http://img692.imageshack.us/img692/9461/100319codeprojectquesti.png[^ (http://img692.imageshack.us/img692/9461/100319codeprojectquesti.png)]
Thanks for any help.