Skip to content

Snowman code

Nadeem alsohily

Asked Jun 11, 2008, 6:06 AM EDT1 answer
Share
LinkedInX

I need help to make code  written in c# console application to show snowman shape.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0

    Umm .. not sure how easy it would be in a console application. If you need in Windows Forms, that should not be difficult.

    Do you need 3D or 2D? If 3D, you need to use DirectX. For 2D, try this sample:

    http://www.c-sharpcorner.com/UploadFile/mgold/hangman11142005040831AM/hangman.aspx

    Using the same approach, you can draw a snowman. You will need to use a GraphicsPath and add your shapes such as lines, circles, and rectangles to give it a shape. If you need to fill the shapes, you use GraphicsPath.FillX methods. If you need to fill different portions of the snowman with different colors, create seperate GraphicsPaths and fill them or fill the shapes (ellipse etc) seperately.

    0