Computer Science Canada Printing a picture instead of a string |
Author: | mirhagk [ 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. ![]()
Please specify what version of Turing you are using 4.0.5 |
Author: | DemonWasp [ 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). |