|
-
Aug 9th, 2000, 06:27 PM
#1
Thread Starter
Junior Member
DOes anyone know how to binary encode a bmp file from a picture box.
Code:
If at work Then GoTo UseDifName
-
Aug 9th, 2000, 06:36 PM
#2
Monday Morning Lunatic
Do you mean saving it as a bitmap image? then use the
Code:
SavePicture Picture1.Image, "file.bmp"
function.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 9th, 2000, 06:41 PM
#3
Thread Starter
Junior Member
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.
Code:
If at work Then GoTo UseDifName
-
Aug 9th, 2000, 06:44 PM
#4
Monday Morning Lunatic
Try the Printer object:
Code:
Printer.PaintPicture Picture1.Image, 20, 20
Printer.EndDoc
If you use this on a printer that is set to print to a file, it should make a .prn file of your bitmap.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 9th, 2000, 07:12 PM
#5
Thread Starter
Junior Member
ok how do i point it at a file
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.
Code:
If at work Then GoTo UseDifName
-
Aug 9th, 2000, 07:53 PM
#6
Thread Starter
Junior Member
ok
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
Code:
If at work Then GoTo UseDifName
-
Aug 10th, 2000, 06:57 PM
#7
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 11th, 2000, 06:48 PM
#8
Fanatic Member
Hey Jen
In your other posting i placed links to the microsoft pages which gave a sample program for BINARY SAVING/LOADING images
DocZaf
{;->
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|