Hi
I have this code and a problem that i don't understand. In image_matrix, a PixelArray object where there is a image. I want to separate this image in frames then I capture pixel by pixel in a double for with the dimensions of frame. The variable h represents each image. self.TileSnc is a list. Each position of this list represent an image that I read and contains another list with each frame of image. The problem is:
Every time that the for h in range(int(max_pos)) executes the line self.TileSnc[stat][pos] = image_sonic would be put the frame (image_sonic) in the position pos, but every positions in self.TileSnc[stat] received the same frame. Can someone say me what's wrong with my code. Thank you very much.
for h in range(int(max_pos)):
pos = pos + 1
for i in range(int(height)):
for j in range(int(frame)):
image_sonic[j][i] = image_matrix[frame*(pos-1)+j][i]
self.TileSnc[stat][pos] = image_sonic