The biggest problem you will have is if you are trying to optimize. This http://en.wikipedia.org/wiki/Bresenham's_line_algorithm is a fairly simple and straightforward implementation or pseudocode. If you know a programming language its quite easy to implement it.
: I'm studying Computer Graphics at school. I've just got to know it,
: so plz help me solve this problem.
: I used the algorithm Bresenham to draw line -> drew a star when we
: know its diameter. The request is that count the number of square
: bricks (c x c) to hem the star (use Bresenham algorithm). Could you
: help me plz ?
: