converter
所属分类:C#编程
开发工具:C#
文件大小:32KB
下载次数:12
上传日期:2007-09-23 17:25:44
上 传 者:
MysticBoy
说明: C# 实现的 图片到 字符图形 的转换程序
(C# Realize the picture to the character graphics conversion process)
文件列表:
asciiart.exe (40960, 2007-02-08)
asciiart.rar (17929, 2007-06-30)
VERMAN ART CONVERTER (Jun 2005)
-------------------------------
1. SUMMARY
This demo converts any jpg/bmp file to either ASCII art or to a text
mosaic (transform pictures in text). Originally made to impress a girl
(and to experiment with C#) who, by the way, didn't give a damn about it :-/
2. REQUIREMENTS
-Windows XP
-.NET framework 1.1+
3. HOW TO USE
-Basically you go through the steps in the program:
1. Load a source image file to play with
2. Select the output type (ASCII or text mosaic)
3. Image quality (5 very good to 1 poor)
4. process the image
-Additionaly if you selected text mosaic as output you must input
the text and the font/color of the final image.
4. HOW TO COMPILE
-You need Microsoft Visual Studio .NET (2003/2005/express edition)
-Just open the solution file asciiart.sln and press Ctrl+F5 to build-run
5. CODE STRUCTURE
-There's just one class which has the two output methods: doMOSAIC() and
doASCII().
-For the ASCII image we transform the input image into grayscale and then
according to the brightness of each pixel we assign an ASCII character
(high intensity = "#", low intensity = ".", for instance).
-For the MOSAIC image we can either convert to gray-scale or full color
in either case we take the brightness as well and according to this create
a bigger or smaller font to draw the text.
近期下载者:
相关文件:
收藏者: