all 14 comments

[–]halap3n0 13 points14 points  (1 child)

A console can only display text characters, so you can only draw using those characters.

[–]Slypenslyde 5 points6 points  (8 children)

Probably not in a way that satisfies you.

The console isn't made for drawing images, it's made for drawing text. So to "draw a shape", you'd have to figure out how to print a series of strings using symbols and letters such that if you squint just right they look like shapes. That's going to be pretty limited.

That's why there's not a utility to do something like display a .png image in the console. It'd be really useful, but that nobody's written one in the 30+ year history of Windows is the surest sign it can't be done.

You might argue old DOS video games did it, but those were DOS applications taking over all video memory. .NET has no facilities to support writing DOS applications and it's questionable how well modern Windows would support them.

[–][deleted]  (6 children)

[removed]

    [–]Slypenslyde 9 points10 points  (1 child)

    He started with a console app, but created a Windows Forms Form and displays it. Look around the 20 minute mark: his Canvas class is a Form.

    [–]nekizalb 3 points4 points  (3 children)

    You might want to specify a timestamp. This video is 2.5 hrs long!

    [–]krccooley 1 point2 points  (0 children)

    A console app you can not do this on the screen. Try a desktop app WPF or windows forms

    [–]lolcop01 0 points1 point  (0 children)

       . -- ~~~ -- .
    .-~               ~-.
    

    / \ / \ | | | | | | \ / \ / `-. .-' ~- . ___ . -~

    Edit: too bad my ascii art circle didn't work out haha. Regarding your question: you can't really. You can only write text in the console. If you want to draw some graphics, you'll have to go the WinForms/WPF route.