On Tue, Jun 15, 2010 at 10:04 PM, Express <[email protected]> wrote:
> I am wondering if someone can help me with what I am trying to > accomplish. I am not sure what the term is called, or how to word it > well. Basically, I want to create a new texture using pieces from > different textures. For instance you have 9 images like top left, top, > top right, left, bottom left, etc. Then you take these and dynamically > create a border based on a targeted size. I could accomplish this > simply with pygame using blit, surfaces, and subsurfaces. However I am > unsure of how to do this with pyglet. > > If anyone knows what I am talking about, could you respond with any > information or help? Thanks. > It sounds like you are trying to render a nine-patch: http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch If so, take a look at the (fairly standard across pyglet projects) nine-patch code, used among other things in my simplui toolkit: http://code.google.com/p/simplui/source/browse/simplui/ninepatch.py -- Tristam MacDonald http://swiftcoder.wordpress.com/ -- 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.
