how do I import an picture (such as a png or jpg) into the squeak image.
----- --- Under the age of 15 so don't want to post my name -- View this message in context: http://forum.world.st/how-do-I-import-an-picture-tp4637076.html Sent from the Squeak - Beginners mailing list archive at Nabble.com.
On 12-06-28 6:06 AM, OrgmiGeek wrote:
how do I import an picture (such as a png or jpg) into the squeak image.
Under the age of 15 so don't want to post my name
View this message in context: http://forum.world.st/how-do-I-import-an-picture-tp4637076.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Depends on what you mean. You can drag a png or jpg onto the World (the surface) and then it's in the system. You can click to get a halo around it (right click) and manipulate it with the halo buttons. Or you might mean to how to import the image into a method as a ByteArray, i.e.:
backgroundPng ^ #(137 80 78 71 13 10 26 10 0 0 0 13 73 72 68 82 0 0 0 1 0 0 3 28 8 3 0 0 0 166 107 63 99 0 0 0 25 116 69 88 116 83 111 102 116 119 97 114 10...
What are you trying to do?
Chris
So, do you mean importing image data into a variable or showing it up in the screen (as Morph)?
- Jin-oh - 2012. 6. 28. 오후 7:06에 "OrgmiGeek" cool.origami.1@gmail.com님이 작성:
how do I import an picture (such as a png or jpg) into the squeak image.
Under the age of 15 so don't want to post my name
View this message in context: http://forum.world.st/how-do-I-import-an-picture-tp4637076.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
beginners@lists.squeakfoundation.org