On Thu, Feb 21, 2008 at 12:48 PM, Andrew Straw <[EMAIL PROTECTED]> wrote:
>
> You're welcome to bend pygarrayimage to your purposes:
> http://code.astraw.com/projects/motmot/wiki/pygarrayimage Perhaps if
> others find it useful it will eventually get incorporated into pyglet
> itself.
>
> -Andrew
Hi Andrew,
I'm using your pygarrayimage module to implement a part of the OpenGL
backend for Chaco, and it worked OK until I tried to flip my image. I
ran into this traceback:
File "/Users/pwang/src/enthought/Enable_3.0.0b1/enthought/kiva/backend_gl.py",
line 133, in draw_image
aii = ArrayInterfaceImage(img.bmp_array[:,::-1,:])
File "/Users/pwang/src/pygarrayimage/pygarrayimage/arrayimage.py",
line 117, in __init__
self.view_new_array( arr )
File "/Users/pwang/src/pygarrayimage/pygarrayimage/arrayimage.py",
line 182, in view_new_array
if not is_c_contiguous(inter):
File "/Users/pwang/src/pygarrayimage/pygarrayimage/arrayimage.py",
line 49, in is_c_contiguous
test_strides *= test_strides * shape[N-i-1]
NameError: global name 'shape' is not defined
This is from the latest SVN trunk of pygarrayimage.
Thanks,
Peter
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---