12-15-2003, 04:24 PM
Quote:Shouldn't you add a '-1' after the FOR A = 0 TO .... line? Just saying...Didn't work...
Like this:
Code:FOR A = 0 TO Image(1, Index) - 1 'ERROR OCCURS HERE
Quote:Also, if you like info about the GET/PUT format, look here:Get pixel image is what gets the color of the pixel. The problem is that it is giving me subscript out of range, ONLY when I add '$DYNAMIC.
Code:GET PUT Format
Offset Type Description
0 Int Width of the sprite * 8 (= x)
2 Int Height of the sprite (= y)
? Byte Pixel data, starts with upperleft corner, advancing right.
EDIT: wt is GetPixelImage ??? Btw, to make your code slightly faster, store the result of this function in a variable.