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

Re: [pygame] Surface.copy()



Is copy() faster than creating a new surface « s2 = pygame.Surface((900,895) » and blitting s1 on s2 « s2.blit(s1,(0,0)) » ?

Orwin 



> On Wed, 2005-02-23 at 19:40 +0100, Orwin wrote:
> > Hi,
> > In my script (python 2.4), I use this function which creates a surface:
> > s1 = pygame.image.load("transparent_img.png")
> > 
> > I can use s1 everywhere except with the function copy()
> > 
> > s2 = s1.copy() 
> > 
> > AttributeError : copy
> 
> Surface.copy is only present in Pygame 1.6.2/1.7.
> -- 
> Joe Wreschnig <piman@xxxxxxxxxxxxxx>

-----------------------------------------------------
Mail.be, WebMail and Virtual Office
http://www.mail.be