title: How to use GetPixel for Bitmap() in Visual Basic
body: <pre><code>Public Class Form1
      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
          Dim terrain As Bitmap(500, 500)
          terrain = New Bitmap(500, 500)
          terrain.GetPixel(250, 250)
      End Sub
  End Class
  </code></pre>
  
  <p>This is my code and I get an error saying <code>GetPixel is not a member of Bitmap()</code>. I'm not sure what I'm doing wrong. Please, fault me for anything i'm doing wrong here, I've never coded in VB before.</p>