how do I import an picture...?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

how do I import an picture...?

OrgmiGeek
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
Reply | Threaded
Open this post in threaded view
|

Re: how do I import an picture...?

Chris Cunnington
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
> [hidden email]
> 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

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: how do I import an picture...?

강진오
In reply to this post by OrgmiGeek

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" <[hidden email]>님이 작성:
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
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners