step with a file read variable

Blitz3D Forums/Blitz3D Programming/step with a file read variable

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

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 ..

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