Printing a picture instead of a string
Author |
Message |
mirhagk
|
Posted: Sat Aug 01, 2009 8:27 am Post subject: Printing a picture instead of a string |
|
|
What is it you are trying to achieve?
I know how to get turing to pop up the Printing screen and print a string that you send to it
i want to be able to print a Picture instead of a string
What is the problem you are having?
I send the picture int to the printer (the variable thats holding the picture) but the printer prints some random 4 character number and thats it
Describe what you have tried to solve this problem
I have searched through all of these forums, i cant find anything on printing pictures, if there is one please show me it.
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Here's the code I'm using, i got if off of another forum on this site and tried to modify it to print a picture, but no luck.
Turing: |
var dataout : int %the var can have any name you want
var picture : int := Pic.FileNew ("trippy.bmp")
open : dataout, "printer", put %yes, litterally the string "printer"
put : dataout, picture %"STRING TO SEND TO PRINTER" %string to print
close : dataout %close the connection to the printer
|
Please specify what version of Turing you are using
4.0.5
Description: |
Heres the picture i was testing it with, thanks everyone |
|
Filesize: |
468.8 KB |
Viewed: |
91 Time(s) |
|
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
DemonWasp
|
Posted: Sat Aug 01, 2009 12:03 pm Post subject: RE:Printing a picture instead of a string |
|
|
What you want is called Drawing a picture and the walkthrough can be found here. For reference, the entire set of Turing walkthroughs is organized here.
The reason that it prints a 4-digit number is because whenever you load an image in Turing, all you get back is an "identifier" number, not the actual picture data (Turing hides this from you); that's the number that's printing.
As far as I know, Turing doesn't have any capabilities for sending to real printers, and it is impossible to put images into text files (which is what your code seems to be doing).
|
|
|
|
|
|
|
|