hello i recently got a response from you guys on how to, Search for a pixel and replace it well now im stuck on finding out how i could do shades, So im using this code
Code:
   Dim newImage As Bitmap = New Bitmap(PictureBox1.BackgroundImage)
        Dim bmp As Bitmap = DirectCast(PictureBox1.BackgroundImage, Bitmap)
        For x As Integer = 0 To bmp.Width - 1
            For y As Integer = 0 To bmp.Height - 1
                If bmp.GetPixel(x, y) = (Color.FromArgb(0, 0, 0)) Then
                    newImage.SetPixel(x, y, Color.White)
                    PictureBox2.BackgroundImage = newImage
                Else
                End If
            Next
        Next
now how could i have it. say if x,y= any shade of black Then.'Take Action'
im making my own paint type tool so im jw how i could paint all black even if it is just 1 digit off from 0,0,0'<- Black' or could someone give me some example code on how to loop threw some lines of r,g,b values so i could use that in my function