VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Image2Text

Martijn B  (7 Submissions)   Graphics   Visual Basic 5.0   Advanced   Wed 3rd February 2021

Use _ANY_ (fixed width) font to create ASCII art. The code will scan the font and your picture to create the optimal ASCII image. The screenshot shows it all. The code is commented, but here is some explanation. You choose a picture and a font (Courier / Terminal / Lucida Console) and a font size. The code will create an array for all 255 grey values that maps to a character in your font. This is done by printing each character and 'scanning' it with GetPixel. After this the picture is scanned and the ASCII art - string is created. The code is fast and can be used on larger pictures, even without compiling. Leave a vote, (or better: a comment) if you like it. (updated 2/19/2003)

Rate Image2Text (11(11 Vote))

Download Image2Text

Image2Text Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters