Search Tools Links Login

Image 2 Ascii


Visual Basic 6, or VB Classic

The Image 2 Ascii converter allows you to load a photograph, and then generate an ascii image that looks simular to it. You can use this ascii version to post a picture of your self on news groups, message boards, email signatures, and more. No longer is text-only formatting a constraint for displaying photographs!

Original Author: Lewis Moten

Code


The Image 2 Ascii converter allows you to load a photograph, and then generate
an ascii image that looks simular to it. You can use this ascii version to post
a picture of your self on news groups, message boards, email signatures, and more.
No longer is text-only formatting a constraint for displaying photographs!



Results are based on the Courier New font in 10 points. They can be displayed
with other font families as long as they are also a fixed width font such as "Lucidia Console".
This program has not been designed
around other font-families luminancy and may not appear with accurate results.



Works best on small black & white images. However, it will work with color
images by getting the average lumanancy from each hue like so:



(red + green + blue) / 3 = Average Lumanancy


Due to the odd shapes of the characters used, larger images will appear
better. However, these larger images will take more time to convert.
I suggest sticking around a size of 100x100 pixels and then working
from there. You may also notice that the final result appears ... tall
and skinny. This is because the ratio of the characters used in the font
are not the same as an individual pixel. To solve this problem, you may
want to streatch your image to be wider with a graphics editing program,
or shorten the height.


Sample of results you may achieve

                          `^{x$y00DyZ3&.`                                  
                       .?oPQRRmkQQQQRNqAy2]{~                              
                      {JRN#HHRRdq@NNH#NH#NNHkLi^`                          
                     /mXN#NHNqR@N@HNHNH##NNNHNHqc}``                       
                    -4Xq##NHHHH#@NHRNN@NHH@N##M#Nq?~''                     
                   `ZqQH###HH####@@HNNHN#HH##MM###H8u(`                    
             ``    :dqNNN#MNNM#M#N#NHNHMNNH##MMM#M#NRVl`                   
            `.-'''.$mQHH#####M#M####N@#MHNHNH##NHNHNHQX1`                  
          `-&?IdT3Jbq###M####M#MMMMMMHMMNN#HMMHqRH@HNNN@O{`                
         &+j6eP@@XkRN#N#M#M#M##MMMMM#MMM#NNNMHQR8k@N##M#N@z`               
       ':tnkqXdRNH@H##H#M####M##MM#M#MM###HM#N@qqQ#M##MMM##L.              
      .{1Obqqm8RHNHHM####H##M########MM#NH####HNHNMMM#M#MMM#b.             
  `  .';$8QNRdQq@##MMN##NH#####N##MNNMM#H#M####M##M#MMMMMM#M#:             
    '?1JXN@NNQNQN####HNHNH##NHHHNNH@@N##NHM#M#MMMMMMMMMMMMMM#A_            
   `:xu8NHN@@q@HN##HHkAAq@QHHNqqqQkbmQHHNN##M##M#MMMMMMMMMMMM#L            
   '}20HHQ@HqR@#HHQf$i*+3TGXqk0wsJ2jI6ekXQNNHHNHN##MMMMMMM#M##m.           
  .{vbN@NNNq8NH##@O?:-,&:+2ZsIo[?:;};*C$6VAb8kkRqq@###MMMMMMM#Ht           
  !*DR@QNN@RQN##NF/'``'`'~_};&_^.`''.^:{)%?l[3L6sbmmN#MMMMMMM#NN&          
  :IH@RN#NHqHH##A+''`````````.`   ````''.-^^_;>?CuTV8m@#MMMM##NHJ          
 `*kNN@##NHQH##R%!````                   ` ```..&%2LZVqNMMMMMM#HR`         
 `xHHHH##H@NHMHo&`` `                           `.:%3JVR#MMMM##HHz`        
  O#NN#MM#QQNHXl..```                           ``',:ljFH#MMMHQHRHi        
 'd#N##MM#RqNHn<.'.`                             `..'^)$8HMMMNQqq#J        
 +RNHMM###HRHqx~..'``                             `.``.)6Q##M#@QRH6        
 x@NN##MM#HRQXJ,''''`                             ```''&%5HMM#HNRRD`       
 O@@#MMMM#HQQP1&''```` ``                         ````',<uRH##@QNRX&       
 yqHMMMMM#RQRel;!.'..``                             ``.^:7FQNN@qN@QZ       
 bNNMM##MMHRfGj)&..''```                            ``.^{7ydR@N@H@QX'      
 mH#M#MM##NkFT1*&''.```` ````                       ``',}]08QRHNN@RQ^      
 qN#MM#MM#@RXZol&!'`'`   ` ``                       ``.~;t0qHHHHHQQQ/      
 HNH###M#M@RXOxi}~'.'```                           ```'.:+5qHNHHNNQqv      
 qHN#M##M#HQdnJ7?&~'!.``                            ```':*6qHNN#NHNQJ      
 @H###M#M#HR8O6o*&~!-'``                            `.''{%xXH#H#HHH85      
 HHH#M#M##N@ddVx/_!-''`                             ```'{?zRN####NHRw      
 @#N##M##NNRmQDz;&^'.``   ```  `            ``````````'.:iumN####NHQ4`     
 d##HMM##NNqQQst}:&.`   ``.`.``'.```    ````.`'''''.~~''&ioPHM##HNNQf`     
 m##NH###HNH@kZi}&,'`.-,^_:}::--,'.` ```..~&:(+%i?%i[*?+lvONMM#HN#@Y.     
 b##M##MHNNHN8I*}:{;{/?l*[JTYuVu3?&^.'.'.&:*7Luo$sb4y6esy$2od##M#NHNx      
 nMM#M######Hy+<%l13CJzL4DkNHRRqfL>&-`'._(iLfd8d8qRRd8f4f0u7wH#M#NNqO`     
 3##########@$??tCx6nsPbmQRHHNNQR5o%_''~{tL0qqR8qQXdAP6ZnALrI@#NH@@me.     
 #####N###HQJ??tJ$edPF0XXXQRqqRqm6t&,'^}c68RqXdd8DwwOTuGYLx2RNM#H@kV'     
 _NH###N#M#Hd](*uOOFDDXkAmmQQH@QRkTl&''.:j4kqQR@@@RkfsZ2Z$J1vfN##NNR$      
 .R##M####HNw*>%uf0bbdQRQ@RQHdRqRRP?.` `~CFkqQXHHH8emQkeL$3++6N##@RRz      
  XMN####HHqY?<?Lf88dQRQRH@HqGk@Rqf*'   .jAdddFmq@w28QQdVZ2+*IQ##@kRI      
  C#HNH#HHNRv<;*LdmqQQqQRRRq808qmm5{.   .[e8ddAfX84GD08bZLj?{rQNN@qNv      
  .X#HNHHNNml{{*jL8QqQqddFDyefPkdbo&.   `/ufAd8FAVZnTebs6o+;:iDHNqQH{      
   lMHH@HHNk*&&:\%2sb8XPyYTZTOynbo}&.`  `&[TAADP4TLLZwVOzc*:::GHNQRq.      
   &NNH@q@Hwi:_-!&:+12Zu$x][++]tl;_,'`  `_;*cCvr[[[jrzC%?;}_::uQ@qP3       
   ~NNNHHNqT]:~''..-~&:}:&-'..''''.'.`  `^_.&::;}::_&&_&!'',_:7fXmO_       
   `RHNNqRmL%;,.''`''`'```.`'``.'..'``  `^&!'.'.,!''``.'''.!&:+ym$c:       
   `yqQRRQRo?>:.''`.'.````````'.''.'.   `._-.'.````'.```..'~_:*uT3v_       
    ]kdmkQbvl}:&^.'.`'```   ``'.,-,''`   '~,-..`'``..`.''!-_{}?vrCr`       
    _FyPkX6v%*/:,~''.'.````` `.'_&~.`    `.&:..'`.'.``..',&:?*+rI%        
    '$Gemkut]??{:__.'''''.``.``&}&'`     ``~}_''``'..'.'.~:{*>*+r:        
     ?wuPbo7[+*;}:!,!'`.'..'.,}}~'.``` `'^,^:!..`.''''^^-{}?*?*?i'        
     _T$ZPu[7l[?}{&!.''`'`'..&|_^{?;&'':}{&~&&,'..'`.!^^_:*?***;.        
     .uu5s$[[tv+?){_,''''.''~~:>{}3uYx**icJ1>>:_,.-''-!,_&{*%((*}'         
     `xuu$Iouxvit[;}&,'^'''~~&:*vLXRQFLzJfqPJ?&~_^~~--__&:/?*/)?:`         
      ;2vTOJJc]]+%*;&-~-!-^!&&&|OFkQQAZLz0d0O]-.~~-!!,&:::((|>?({          
      ![7$TIzo7]*??/:_~-^-&_&_'&6Fmk8fVuI08An['.'!&&&:&&}{;/??*:          
      `?COo$u2j[1>/;:_&&&&&!.`'Jk88FnGLx$sGGC-`..-&::{{{;???i?~          
       &<oZ$x$JJr[>|?}:&_:&,'``'*DAXfT$L22$L$7&`.'-_{:{(;}**???;`          
       `{ufZuLLJcjt+*?;;::&-...'{CxJTu$LoI$oz]},''-^{}{}/*??<:            
        ~wmyuLLI2jr]l?>>:-'.,-.&_{*r$u2xIv]*:&!_,&{}}()>?***_            
        '8NPxLLxIoC7+*?>>:&&-:&~^..'!}tzJxcl?;:{{{:&;;??(%****!            
        -mNquzLuJox21**%{|;:}}:,--;(?%]jxx3t{;|%?{;;{/?*l?*;?'            
        '0NHeuZ$$TYuj7+i*?*(*l**?t$uJuyTTwwTuCt7v]*+*;{?***?}/'            
         [NHP$uuY6uICv7+?%++[xun5AdfD8dm8mkPffDsw$v+*)<?+l+?>}`            
         .dN8YYL$Y2Lotl*l[7jTym@R0GL**xICTYn5Dk8dTI%+???%l%*&             
          {mqZOOY6TTLj[+1CJ$ydd0Toxl&&{:{[337vzIccC7+?|itl*(|'             
           zHAuZnY66$oc111CLuzcc71jc%i?>7crj1%?|:{i[?i%+?*l?*'             
           _]$YO4VVTOuIv11Coc*|%1cI$Lz2J$L2C%*{::}+c[+++**??;              
            `:xZ6nwnOZLLrcxc*/}<l3zTwV54LY$C+*}};*[ICci[+++?'              
             .cZ64V5TLLTLozi))?+1jLOsysOOI2C+?(*]3L2C]j]%r:               
             .%6T5sZYY6O6uo1*****[c2LTneZ$jCC+*(/ijICv7tl?+^               
             `|O6Gb04VeTOZ$v7*)<)|<>*)/*+?*(*(*?*71rrt73[[.               
             `}ZOwy50P4ee$IJ[i?):-___-.',---~:;(*l[[J1]]17l.               
              &ZOsysFFbbGz2C+*}_.-_~.'.,'''.^:;>l17Irl[[%?'               
              :Z5TnPfbDP6Juul?(::&,^,'...'-,!^:)?]1]Icj3t+?~               
              :YsYs0GefAOTYoc+*;<:~^~~^^~!&:__;?+r2cv1r7+l/!               
              :oLOyY4ysy0bD63l%+l>|;{}){{::>;?[3cJ[v2jt%?}_.              
              _2LYVYenfwPPfyOxIJC*1%tic7l+l?tj1tv23v2xj[i*};,`             
              _uLDPyGPeY6ydd0FswYILTLLZ$Ix2zLLLCr2vjICrt**}{|.             
             `2I6YTTenVDnyDDPFFVZe44YLZYTuL$$$zJoxcxI[+*?;;*&             
             ;tcLOYOynFAkeTPbFFXfn4GnGTOOZYuLZx2Y$22IJ7+?*{{+{`            
            `(jvoTyVVynyPPGPfw58F4DAADw4eGeywOO$LLjc3Ctti?<?l}.            
            '?x3u6Z655Asf05GPsGAb4DFAywwwynwyGsuzuzrCrCt?/[7;-            
            '?xIoLLYyPAAGGAfb8F0b0AA0n0seO5TL$LuLL2xC7]t+*?]*{-``          
            '{c$ILTnPDyA0bDFbeFb4VPD0P54YVsLLZLuozzIrt]+**[C+/&~,,..`      
            .:[$22uY55Fb8FydfOwDnebeynwyZ4VYwZ6JJzzor3t+*|7o*&~!;:&_~''`   
            .-zxuo$ZGf0AADbbAADyF4V45ese4ZZZ4ujxCxozv+?*?ct?:-,:{&_,^~.''`
           '^,:uZz$TY5eybF0DDAe5f0PyfAVDOY4ZuOOxIIort1t+*v$*/:,-:({:&&,'.'`
        ``.&:_:cZz$u$yGGA0Pfwe50F5AeD0VZZLnYOuOu2o2IC1ilioj*}_~}:}{:__-'.``
        `'-_:_:|LwuLYyTeAAwyGk0PAnwneOYu6u6$$Luu$2Cjt[+%zL1*;__?;}{}&_~.'``
        `''_)::&rnu6Z$w54eyVFDsPmDenwYGneZO$$Tuxxxccc]*tux};-:?}:;:&^.''` 
        ```!t/;:*$O6OYT56ZGVFVf0005FwZTYY66$$LxoCvv1[]tIv+}::-}?::};&...`` 
         ``-x<}:&(2O66OT66TOG5n0PsV5eV6LYOL$$uxzcvcvt1IL]*)}&_%<_:{}_.``   
          `~j{:&:rYTZYTuZYYT5s6OnGnOVZuYLxuLo2I]ccr32$2]*<{&;z*:::&''.    
          ``j*;|_:*2eOLuLTOYs5n4yw6TY6Z$TJzzoz2C37[rxZJcl(){_[Z}&::_.'.``  
           '3[(?;:{lu6OLL$uLO46TsT6ZZZ$u$6Lux2zzrtvcT6zC?;;:_$x_:{_-'`'`   

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 126 times

Categories

Visual Basic 6

Attachments

Image_2_As868625252002.zip
Posted: 9/3/2020 3:45:00 PM
Size: 50,310 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.