本文介绍了循环错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此循环出错. 

I am getting an error with this loop. 


Dim point_readings() As Integer
        Dim gridx() As Integer = {55, 85, 120, 15, 180, 210, 240, 275}
        Dim gridy() As Integer = {390, 415, 440, 460, 485, 510, 530, 550, 575, 600}
        Dim n As Integer = 0
        Dim m As Integer = 0
        Dim i As Integer = 0
        For n = 0 To 7
            For m = 0 To 9
                For i = 0 To 99
                    point_readings(i) = GetPixel(gridx(n), gridx(m))
                    Debug.Print(point_readings(i).ToString)
                    i = i + 1
                Next
                m = m + 1
            Next
            n = n + 1
        Next

怎么了?


What's wrong here?


推荐答案

point_readings (99) As 整数

Dim point_readings(99) AsInteger

还有什么是GetPixel ( gridx ( n ), gridx ( m ))获取像素?

Also what is GetPixel(gridx(n), gridx(m)) getting the pixel from?

https://msdn.microsoft .com/en-us/library/system.drawing.bitmap.getpixel%28v = vs.110%29.aspx


这篇关于循环错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 12:56