Re: richard heathfield
From: Mantorok Redgormor (nethlek_at_tokyo.com)
Date: 11/17/03
- Next message: Tak To: "Re: Programming Language Productivity: The Stupidity of Programmers"
- Previous message: Anthony Ventimiglia: "Re: Neural net - guessing literature kind"
- In reply to: Richard Heathfield: "Re: richard heathfield"
- Next in thread: Arthur J. O'Dwyer: "Re: richard heathfield"
- Reply: Arthur J. O'Dwyer: "Re: richard heathfield"
- Reply: Programmer Dude: "Re: richard heathfield"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Tak To: "Re: Programming Language Productivity: The Stupidity of Programmers"
- Previous message: Anthony Ventimiglia: "Re: Neural net - guessing literature kind"
- In reply to: Richard Heathfield: "Re: richard heathfield"
- Next in thread: Arthur J. O'Dwyer: "Re: richard heathfield"
- Reply: Arthur J. O'Dwyer: "Re: richard heathfield"
- Reply: Programmer Dude: "Re: richard heathfield"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|