Oh gawd.
SetPixel Function (Windows)
GetDC Function (Windows)
[highlight=vb.net]<DllImport("Gdi32.dll")> _
Public Shared Function SetPixel(ByVal hdc As IntPtr, ByVal x As Integer, ByVal y As Integer, ByVal xColor As ColorRef) As Integer
End Function
<DllImport("user32.dll")> _
Private Shared Function GetDC(ByVal hwnd As IntPtr) As IntPtr
End Function
Structure ColorRef
Public red, green, blue As Byte
Private unused As Byte
Public Sub New(ByVal r As Byte, ByVal g As Byte, ByVal b As Byte)
red = r
green = g
blue = b
unused = 0
End Sub
End Structure[/highlight]
I'm not spoonfeeding you, figure the rest out yourself.