I am simply trying to set the pixel at 0,0 to the color red.
Afterwards, I want this to display on a picturebox.
Error showing up:
So obviously I'm doing it wrong. How do I set pixel 0,0 to red?
Code:
Dim newPic As System.Drawing.Bitmap
newPic.SetPixel(0, 0, Color.Red)
Code:
Picturebox1.Image = newPic
Code:
Object reference not set to an instance of an object.