Ok, is there a way to use API to get the color that the cursor is over, you know, like you can in programs like photoshop and flash?
Printable View
Ok, is there a way to use API to get the color that the cursor is over, you know, like you can in programs like photoshop and flash?
GetPixel.
Usage (In Picture_MouseDown event)Code:Private Declare Function GetPixel Lib "gdi32" Alias "GetPixel" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
Code:lColor = GetPixel(Picture1.hDC, X ,Y)