Could you tell me how to write simple graphics program in c, for example, how to take the format of bmp, pgm, csd file from image file?
how to convert from one format to other? If anybody knows a good book or web site, please tell me soon.
True , that site contains much more to know about file types.
and their healders. But I'm too lazy to write the helder parsing and
data extraction framework. Instead of writing it groud up what I doing
is just normally download a framework ( open source ) and use it.
Just google about C++ image libraries you will get what you need.
1) For your problems, unless it's EXACTLY the same, always start a new thread
2) You have to be VERY specific about what you are asking about. "Draw nonlinear objects", doesn't tell anyone what you are stumped on doing.
3) With your first post on a subject, post your efforts to solve the problem. This is a forum policy to reduce the "I need the codes for this!" kind of posts.
for the B-spline curves there are little bit complex algorithms.
You better read a rasterization algorithm chapter in a computer graphics book
if you want to implement those by hand.
I recommand you to read books like Computer Graphics C Version 2Ed Donald Hearn,
Graphics GEMS I,II,II like books.
or else you a 3rd party library to draw those things.I suggest you to use the
OpenGL it's very nice for scientific computing (actually good for game developing too).
Or in a simple way you can use SDL like simple library.