Reading only parts of images, tiles

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

Reading only parts of images, tiles

hypolit
Hi,

Is there any class which is able to read only a specific part of a given image? I can read and display entire images with "Forms" just fine, but it does not seem to permit me reading only parts of it.
The reason i'm asking this is because i want to implement a simple tile graphics engine, so i need a way to break down images into single parts.

Thanks in advance,
Peter Schneider

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

Re: Reading only parts of images, tiles

Brad Fuller-2
On Mon September 17 2007, Peter Schneider wrote:
> Hi,
>
> Is there any class which is able to read only a specific part of a given
> image? I can read and display entire images with "Forms" just fine, but it
> does not seem to permit me reading only parts of it.
> The reason i'm asking this is because i want to implement a simple tile
> graphics engine, so i need a way to break down images into single parts.

Clarification: when you say "image" do you mean graphic type files (PNG, GIF,
JPG, etc.)?

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

Re: Reading only parts of images, tiles

hypolit
Yes. I want to read in graphic type files.

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

Re: Reading only parts of images, tiles

hypolit
Yes. I want to read in graphic type files.

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

Re: Reading only parts of images, tiles

Bert Freudenberg
In reply to this post by hypolit

On Sep 17, 2007, at 20:38 , Peter Schneider wrote:

> Hi,
>
> Is there any class which is able to read only a specific part of a  
> given image? I can read and display entire images with "Forms" just  
> fine, but it does not seem to permit me reading only parts of it.
> The reason i'm asking this is because i want to implement a simple  
> tile graphics engine, so i need a way to break down images into  
> single parts.

You always have to read the whole image first, resulting in a single  
Form. Then you can break it up if necessary, or even simpler, just  
display only the part of the image that you want.

- Bert -


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

Re: Reading only parts of images, tiles

hypolit
I found the source of my confusion: You have to load/display images using Forms and clip/copy/manipulate them with BitBlt.
If someone else has as similar problem, there seems to be a rather complete treatment of this topic in "Inside Smalltalk Vol. 1".

Thanks for helping me.

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