[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Bug: numpyarray.pixels_alpha array not properly aligned
Lenard Lindstrom wrote:
Enclosed is a program that uses pixels_alpha to assign alpha to a
surface. It displays two green rectangles, the top one using numpy,
the bottom one using Numeric for reference. The center of each
rectangle should have alpha 0, as is the case with the bottom
rectangle, which appears as a green frame with the white background
showing through. The numpy rectangle is scrambled. It would appear the
array is not properly aligned with the surface's pitch. The rectangle
displays correctly with image_size = (64, 64).
Sorry, I failed to mentions that this uses revision 1072 of Pygame.
--
Lenard Lindstrom
<len-l@xxxxxxxxx>