Hey all, anyone knows how can I print a picture in c++;
CAN U GIVE ME A CODE? A SAMPLE?
THANKS
Hey all, anyone knows how can I print a picture in c++;
CAN U GIVE ME A CODE? A SAMPLE?
THANKS
Print?
Do you mean, using printer?
edited
yes using printer..
print a picture using printer, c++ code
Tell us, which Operating System and C++ compiler you are using?
It will help others to suggest you an easy solution.
Ubuntu, gcc compiler..
can I get a sample code that does this!
I already googled, didnt find anything.
can i just like windows , call system(print watever..)
how it works in linux?
FILE * fpPrint; // file handle for printing
fpPrint = fopen( "PRN:" ); // open the printer port
fprintf( fpPrint, "testing" ); // write to the printer
fclose( fpPrint ); // close the printer port
this code aint enough
I Want To Print A Picture
Can't you post an idea? Even if it's wrong it's still better us to write the whole code for you.
Ubuntu Linux / Vista Home Premium (for games)
SCiTE text editor, G++ compiler
Actually I can hint only, I have not done anything like this before.
But since everything is a file on Linux, you can try opening printer device as a file, and write to it.
Please, I can't say if it will work or not. Let us have some expert's advice about this. First.