Re: richard heathfield

From: Mantorok Redgormor (nethlek_at_tokyo.com)
Date: 11/17/03


Date: 17 Nov 2003 14:40:52 -0800

Richard Heathfield <dontmail@address.co.uk.invalid> wrote in message news:<bpb8m2$3ub$1@hercules.btinternet.com>...
> Mantorok Redgormor wrote:
>
> > Hi :)
> >
> > Sorry for the off topic post in comp.lang.c
> > Well I am still dying to know, how did you create that ascii art program?
> > What is the technique you used?
>
> Er, let me think...
>
> Okay, I started off by taking a photograph of Clint, my debugging teddybear.
> The photograph was in JPEG format. I transferred it to my Linux box, where
> I used the GIMP to turn it into Windows bitmap format (basically because
> bitmaps are easier to code for). I then flipped it back over to Windows,
> and wrote a C++ Builder program to load the bitmap into a canvas for me.
> That gave me pixel-by-pixel access. Pause.

I can convert it to (greyscale)bmp and then run it through hexdump
not sure if this is good enough

>
> I also wrote another C++ Builder program. This one wrote the entire
> printable subset of the character set onto a canvas, using a sensible
> fixed-pitch font such as might be displayed by a console. It then did
> pixel-counting to determine the "density" of each letter.

Do you know of some documentation that explains the above in depth?

>
> Back to the first program. :-) Okay, I iterated over the bitmap, using
> square blocks of pixels, and averaging their red, green, and blue values to
> get a final greyscale value. The program then decided which letter best
> approximated that value (it wasn't difficult: letter[greyscalevalue / 4],
> basically). And then it was all over bar the shouting. The shouting, in
> this case, consisted of generating an ever-so-slightly non-obvious but 100%
> standard ISO C program to display the actual characters.
>

likewise for documentation. I am interested in doing this.

> I didn't bother saving the code, but I could easily do it again if I had to
> or wanted to.



Relevant Pages

  • Re: richard heathfield
    ... I used the GIMP to turn it into Windows bitmap format (basically because ... printable subset of the character set onto a canvas, ... And then it was all over bar the shouting. ... standard ISO C program to display the actual characters. ...
    (comp.programming)
  • Re: Problem with text/html parts?
    ... some messages didn't seem to display what I expected, ... I'm going to guess that you put this entry in because you were getting ... From the mhshow man page: ... Because a content of type text might be in a non-ASCII character set, ...
    (comp.mail.mh)
  • Mails as attachments
    ... as Webserver.. ... This message uses a character set that is not ... If the text doesn't display correctly, ... that can display the original character set. ...
    (SunManagers)
  • Re: Corrupted email subject with 2 different character encoding
    ... raw subject line is corrupted when display in outlook 2003. ... The first character is the kanji for the verb "to be surprised, frightened, amazed, taken aback, etc." but is followed by hiragana suggesting an adverb, then another hiragana suggesting a noun. ... I recommend that you stick to a single character set, and not mix character sets in a message. ... Liberty is a well-armed sheep contesting the vote. ...
    (comp.mail.headers)
  • Re: connecting TV for monitor use
    ... I went to the control panel under display but I could not figure anything out. ... In terms of manuals, for Nvidia, there are a number of ... control panel though, means less documentation from ...
    (microsoft.public.windowsxp.general)