On Tue, Jan 26, 2010 at 11:09 AM, Werner LEMBERG
<address@hidden> wrote:
> In ShowImage ,we are comparing image[i][j] <128 Can any one please
> explain me what is the logic behind that?
>
> if( image[i][j] < 128)
> putchar('.');
> else
> putchar('*');
I've already explained this to you: The bitmap buffer contains gray
shades (values 0-255); for the TTY display I reduce them to two
values: A dot for the range 0-127 and an asterisk for 128-255.
PLEASE study the demo source code together with the tutorials. And
don't rush.
Werner