DOes anyone know how to binary encode a bmp file from a picture box.
Printable View
DOes anyone know how to binary encode a bmp file from a picture box.
Do you mean saving it as a bitmap image? then use the
function.Code:SavePicture Picture1.Image, "file.bmp"
no I mean convert it from a .bmp file to binary textstream. I'mm looking for the answer to the quistion I posted earlier. and a .prn file to the best of my ability to tell is as far as a bmp file goes it binary code broken up with printer orentation commands and other things commands embeded.
Try the Printer object:
If you use this on a printer that is set to print to a file, it should make a .prn file of your bitmap.Code:Printer.PaintPicture Picture1.Image, 20, 20
Printer.EndDoc
I have the code to print it already so if you could tell me how to point the printer @ a file I would be very greatful.
Ok I'm sorry you guys are misunderstanding me. what I need to do is have a picutre go through the printer object and come out as a *.prn file. I really don't know if it can be done with the printer object but I haven't found the right API yet either so...... I know there has to be a way to accomplish this.
to elaberate on just exactly what i mean. Open up windows imaging and open a picture (i don't care what kind), now go to File > Print. When the Dialog comes up select print to file, Imaging will ask for a File name say test.prn or ImageName.prn. Imaging will save this new file to the location of the old file. Now take note pad and go open the file, this is what i need to make.
Thankz
Still looking
Change the entry in win.ini. If you open it in notepad, it will tell you all that you need to change. The GetProfileString and WriteProfileString functions should help here.
Hey Jen
In your other posting i placed links to the microsoft pages which gave a sample program for BINARY SAVING/LOADING images
DocZaf
{;->