Firstly, you shouldn't be looking outside the image buffer ... it goes from 0...(width-1) etc.. If you start reading the RGB values outwith you could get a mav.
There is no way to assign a constant from a variable read from a file. This should work though ..
There is no way to assign a constant from a variable read from a file. This should work though ..
For y = 0 To ImageHeight(img)-1 if ( y mod steps ) = 0 WriteLine( fileout, "..." ) For x = 0 To ImageWidth(img)-1 if ( x mod steps ) = 0 WriteLine( fileout, "...stuff..." ) EndIf Next WriteLine( fileout, "...." ) endif Next