L
Luc The Perverse
(feel free to jump ahead to java specific part)
***Background***
Ok I give up!
I am designing a program to display ASCII art to represent a picture.
(Purely practice, no "real" use for such a program) but the characters I use
to represent various shades of luminous intensity have been hand picked and
are very few.
I want to "count" the number of pixels used for each of the 96? typeable
characters (I'm using courier new) and assign them a luminous intensity, in
the event of a "tie" I will apply some sort of simple algorithm which favors
the pixels being most spread out (by taking luminous intensity of the 4
quadrents of the character and applying a formula to calculate the
difference)
***Java Specific Part***
I see examples for extracting pixels from class type "Image" but I can't
seem to figure out how to generate an "Image" from a font and a text string.
Can someone point me to an example, or show me one here?
***Background***
Ok I give up!
I am designing a program to display ASCII art to represent a picture.
(Purely practice, no "real" use for such a program) but the characters I use
to represent various shades of luminous intensity have been hand picked and
are very few.
I want to "count" the number of pixels used for each of the 96? typeable
characters (I'm using courier new) and assign them a luminous intensity, in
the event of a "tie" I will apply some sort of simple algorithm which favors
the pixels being most spread out (by taking luminous intensity of the 4
quadrents of the character and applying a formula to calculate the
difference)
***Java Specific Part***
I see examples for extracting pixels from class type "Image" but I can't
seem to figure out how to generate an "Image" from a font and a text string.
Can someone point me to an example, or show me one here?