The question is what exactly you wan't to do...?
If you're looking to write basic code to draw lines/circles pixel-by-pixel
this has been done before - if you don't wan't to invent the wheel again.
But basic algorithms can be found in a book (the first bible on the subject)
Donald E. Knuth ... Addison Wesley ... Computer Graphics :Principles and Practice
Hearn,Donald and M. Pauline Baker, Computer Graphics, C version, 2nd Edition, Prentice Hall, Inc. Upper Saddle River, New Jersey, 1997, 652 pages, ISBN 0-13-530924-7.
Some web-links that I googled quickly - could be of use:
Lines:
http://www.cs.unc.edu/~mcmillan/comp...re6/Lines.html
http://www.edepot.com/algorithm.html
Circles:
http://www.cs.unc.edu/~mcmillan/comp...e7/circle.html
Hoping that solved the problem - if not already solved...