What does tag it mean?
Set the appropriate tags on your question: when you enter your question or edit it with "Improve Question" the Tags are just below the subject. They are a short-cut to classify your question so we can filter out things we know nothing about.
What is WPF?
Windows Presentation Foundation[
^]
Where does the system.drawing command go?
Nowhere, it isn't a command but an assembly - it contains drawing code you can use if you reference the assembly in your application/
Try:
<DllImport("gdi32")> _
Public Shared Function GetPixel(hDC As IntPtr, XPos As Integer, YPos As Integer) As UInteger
End Function
<DllImport("user32.dll", CharSet := CharSet.Auto)> _
Public Shared Function GetCursorPos(ByRef pt As POINT) As Boolean
End Function
<DllImport("User32.dll", CharSet := CharSet.Auto)> _
Public Shared Function GetWindowDC(hWnd As IntPtr) As IntPtr
End Function
Public Shared Function [Get]() As Color
Dim dc As IntPtr = GetWindowDC(IntPtr.Zero)
Dim p As POINT
GetCursorPos(p)
Dim color__1 As Long = GetPixel(dc, p.X, p.Y)
Return Color.FromArgb(CInt(color__1))
End Function
<StructLayout(LayoutKind.Sequential)> _
Public Structure POINT
Public X As Integer
Public Y As Integer
Public Sub New(x__1 As Integer, y__2 As Integer)
X = x__1
Y = y__2
End Sub
End Structure
(That is auto converted from my C# code, so it may or may not compile. Should do though, developer Fusion is pretty good)