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

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



Indeed... Anyway - this is how I would do it:

surf_1 = surf.subsurface((0,0,50,50)).convert_alpha()

Gets you a copy of the surface.  I think newer versions of pygame also include a .copy() function which might be better (depending on your use).

Phil

Ian Mallett <geometrian@xxxxxxxxx> wrote:
No, 50x50.

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