/ImageToANSI

A tool to convert image files to ANSI art

Primary LanguageC#

About ImageToANSI

This is a tool to convert image files to ANSI art. Please note that unlike other similar programs, the purpose of this one is to make art to be used in DOS (DOSBox), using only 16 colors.

ImageToANSI

How to use

Get a small image, preferably 80x50 PNG with low colors. Start the program and press Open to find your image file.
There's a preview window at the bottom, so you can see what the end result will look like in console. The number of rows and columns should stay 80x25 but you can change it at the top if you want to. Colors will be reduced to 16 colors by default. Some color options are available on top but I recommend balancing things out in your favorite image editor first.
Press the Save button to save your image in ANS format. Navigate to your file in DOS and write "type file.ans" to display your art.

Known problems

  • Window size might not stretch correctly in some cases. Try to avoid window resizing.
  • Some image formats load incorrectly. Keep it simple, use Paint and save to PNG or BMP files.
  • There are certain color restrictions due to using only 16 colors. For example you can't have white with yellow underneath in even rows.
  • Output file is unoptimized. I recommend resaving the file in a program like TheDraw.

Build info

IDE: Visual Studio 2019
Project type: Windows Forms App (C#)
Target framework: .NET Framework 4.5