[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

RE: [pygame] Alternative to pygame.Surface.subsurface



Opps...yeah 25x25.  I tried the pygame.transform.chop but I realize that this function's name is misleading.


Date: Thu, 18 Oct 2007 11:00:01 -0700
From: gastomaster@xxxxxxxxx
Subject: Re: [pygame] Alternative to pygame.Surface.subsurface
To: pygame-users@xxxxxxxx

You mean 4 boxes of 25x25

Ronald Lew <ronald_lew@xxxxxxxxxxx> wrote:
Is there another way to get a portion of an image without having a reference to the parent?  I have a 100x100 surface and would like to have 4 surfaces that takes 1/4 of the surface so the end result would have 4 boxes of 50x50.  Here's an example

---------
| 1 | 2 |
---------
| 3 | 4 |
---------


Thanks.

Ron


Peek-a-boo FREE Tricks & Treats for You! Get 'em!

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Climb to the top of the charts!  Play Star Shuffle:  the word scramble challenge with star power. Play Now!