GetPicel Api can tell you the RGB color of a pixel
'--
Private Declare Function GetPixel Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
'--
Cycling trough all the pixels of a pictureBox, you could know the amount of red-green.blue they have.
Once you determined the range of values you would accept to select, you still have a matter: how to show the selection? May be you could use another picture to draw on it selected pixels only.
You can draw on second picture using Pset (picDest.Pset...) or
the setPixel api
'--
Private Declare Function SetPixel Lib "gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal crColor As Long) As Long
'--
...
To get something related with gradient, you could look at this:
http://www.1delphistreet.com/URLSEO/vb/scripts/ShowCode!asp/txtCodeId!49709/lngWid!1/anyname.htm
(Sorry, do not know how good it is: I do not usually work a lot with graphic)
cimperiali
| Fri, 09 Nov 2007 23:28:00 GMT |