Skip to content

OldSchool1705/ASCLL-ART

Repository files navigation

ASCII Art Converter

This project converts images into ASCII art representations using C# and the .NET Framework. The program reads an image file, resizes it, converts it to grayscale, and then maps the pixel intensities to ASCII characters.

Features

  • Image Resizing: Automatically resizes images to fit within a specified maximum width.
  • Grayscale Conversion: Converts images to grayscale for better ASCII representation.
  • ASCII Mapping: Maps pixel intensities to a predefined set of ASCII characters.
  • File Output: Saves the ASCII art to a text file.

Requirements

  • .NET Framework
  • Windows OS (for System.Windows.Forms and System.Drawing namespaces)

Usage

  1. Open the Project: Load the solution in Visual Studio or any compatible C# IDE.
  2. Run the Program: Execute the program. It will prompt you to select an image file.
  3. Select an Image: Use the file dialog to choose an image file (supports BMP, PNG, JPG, JPEG formats).
  4. View ASCII Art: The ASCII art representation will be displayed in the console and saved to image.txt.

Code Structure

  • Program.cs: Contains the main entry point of the application. Handles file dialog, image processing, and output.
  • Extensions.cs: Provides extension methods for converting a Bitmap to grayscale.
  • BitmapToASCIIConverter.cs: Contains logic for converting a Bitmap to an ASCII art representation.

Example

Below is a screenshot of the program in action:

Project Screenshot

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages