Click here to Skip to main content
15,897,704 members

Image handling in c/c++ and graphics?

deepak212 asked:

Open original thread
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:
C++
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
Tags: Image Processing

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900