TEXT2IMAGE : Convert an ASCII text file to image

Text to image conversion.
8.8K Downloads
Updated 27 Jun 2011

View License

This code converts any ASCII text file (notepad, MATLAB-m files, etc) into images.

Screen shot is the image being converted from a notepad file that had the story - Christmas Carol.

Cite As

Divakar Roy (2026). TEXT2IMAGE : Convert an ASCII text file to image (https://www.mathworks.com/matlabcentral/fileexchange/7952-text2image-convert-an-ascii-text-file-to-image), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.4.0.0

Good speed-up after pre-allocation.

1.3.0.0

Rar file is replaced by zip file.

1.1.0.0

90 % speed-up as a result of using mat files and removing loops.

1.0.0.0

new screenshot