freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] ShowImage


From: Werner LEMBERG
Subject: Re: [ft] ShowImage
Date: Tue, 26 Jan 2010 17:09:34 +0100 (CET)

> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]