[Help] How to use SetPixel

Posts 1–2 of 2 · Page 1 of 1
[Help] How to use SetPixel
does anyone have a tut or example
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.
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us