hi all,
Before I start writing my question I want to make it clear that this is my first post and I am really newbie in programming. I just learned C (i.e string manipulation, array n all). I use very old version of turbo C compiler ( blue screen:P now I know its antique these dayz) (coz my friend told me that its easy to use and with C you can do anything which other compiler can do). I have to admit it was really easy to understand.
Now I want to make a program which takes image as an input n also give image as an input with some editing like zoom in/out. I dont know where to start.
So my question is: Is it possible with C n this compiler to input image and store its pixel in array coz all libraries ( like magick++, opencv, CImg) I tried gives error during compilation, so I think they r not compatible with this compiler.
After some more google search I came around this code:
FILE *fp;
unsigned char *bufferImmagine;
bufferImmagine=new unsigned char [dimX*dimY*3];
fp=fopen(argv[1],"r");
fread (bufferImmagine,dimX*dimY*3,1,fp);
but I can't understand anything in it. So please help here also.
and my last question is:
I want to learn graphic handling and c++ now. So please suggest me a good way and a good compiler. whether I stick with this turbo c++, or use new version of borland or VC++??
n also tell me what is the difference between these compilers??
thanks n regard