"aks1232001" <> wrote:
> 1. How can i convert a color BMP file into a monochrome black and white
> image (NOT GRAYSCALE) in C ???
a. You find the BMP file format on <http://www.wotsit.org/>.
b. You design an algorithm to convert colour information reliably into
black-and-white (NOT GRAYSCALE) information. This is probably going
to be the trickiest part of the job, by a considerable margin. It is
also not a C problem, but an algorithm problem.
c. You implement this algorithm in C.
The good news is: this is all possible in pure ISO C (all it does is
manipulate binary files), so once you _do_ have your file specs and
conversion algorithm and have made a serious attempt at doing your own
homework, any snags you encounter would quite possibly be on-topic in
comp.lang.c.
> 2. Are there any routines available which can display images in my C
> application??
Undoubtedly, but they're all system-specific, and therefore off-topic
here. Even on a single OS it would depend on how and where you'd want to
display it. Ask in a newsgroup that discusses your particular compiler/
OS/graphhics lib.
> 3. Also how can i call a program say for eg. notepad.exe from my
> program?? i.e in my code how do i execute the program notepad.exe
system("notepad.exe");
> I agree i have asked quite some doubts
No, you haven't. You've asked some questions.
> I wud b very grateful if someone cud post a lil bit of sample code too
So would I; but it's _your_ homework, so it's going to have to be you
who posts it.
It would also be a good idea if you
- wrote proper English, without schoolboy abbreviations such as "cud";
- got a dictionary ("doubt" does not mean what you think it does), and
while you're at it, educate your peers; this error is all too common;
- read the FAQ and Welcome message _before_ posting to a newsgroup, as
common (or these days, alas, all too uncommon) netiquette requires.
Richard