Hi. This could work:

bgimage=pyglet.image.create(width,height)
bgimage.texture.blit_into(tile,x,y,0)


----- Original Message ----- 
From: "Alex Morais" <[EMAIL PROTECTED]>
To: "pyglet-users" <[email protected]>
Sent: Thursday, April 24, 2008 12:43 AM
Subject: Can't create a new image and blit_into it


>
> I'm working on a Level class for my game in which it will iterate over
> the map specification and blit all of the tiles to a texture or
> image.  This way I can just re-blit the visible region of the map.
>
> Can anyone tell me the proper or prescribed method for instantiating
> an image into which I'll be blitting loaded image data?
> >
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.3/1392 - Release Date: 
> 22/04/2008 15:51
>
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to