Is there a way in the c language, to read/get an image file such as a jpeg or .bmp and print it using some print command. Currently I get around this by converting a bmp file to a bunch of coordinates, (each set of coordinates representing a single pixel), I read these coordinates from a file and print it pixel by pixel using a while loop and using the following function:
this takes a while with printers that have little memory. Is there some way to print it all at once?Code:print_dot(rows,cols) int rows,cols; { printf("\033*p%dY\0",rows); printf("\033*p%dX\0",cols); printf("\033*c1A\0"); printf("\033*c1B\0"); printf("\033*c0P\0"); }



LinkBack URL
About LinkBacks



My question is "Why not use the program that came with the scanner to scan and print the pic?"