Picture to Text (Update to Icon to Text)
This code is an update to the Icon to Text converter submitted by Ben Jones. I have posted this with his permission. Please visit his website at:
http://www.codearchive.com/~dreamvb
If you like it, please vote. Anyway, This update adds the following abilities:
- Ability to convert any image insertable into a picturebox. I.E. JPG, GIF, BMP, WMF, ICO.
- Large picture support. Will support text files with widths up to 22 inches without word wrapping, larger with word wrapping.
- Character support for up to 223 colors
- Full-color text display using richtextbox control. (Now saves to rtf, but you can comment out that option)
- Color legend to show mappings (Uses dynamic control loading)
Requires RichTextbox control for rtf previewing, Windows common controls 6.0 for progressbar.
Produces RTF text picture with color legend. My girlfriend uses this for cross-stitch patterns.
However, Color is limited to 223 colors(character set 33-255) However, I've had great success in converting jpgs to 256 color bitmaps prior to converting to text.
Basically, I have changed Ben's conversion logic to an array of colors with indexes equal to ascii character codes.
Original Author: Jay Kreusch
About this post
Posted: 2002-06-01
By: ArchiveBot
Viewed: 97 times
Categories
Attachments
CODE_UPLOAD70296232000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 24,016 bytes
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.