GetPixel

and

SetPixel

One of two ways..

1) Maybe you know your bg color? if so:

For X = 0 to PICNAME.ScaleWidth -1 'Scalemode must be 3

For Y = 0 to PICNAME.ScaleHeight -1 ' ^^^

SColor = GetPixel (PICNAME.Hdc,X,Y)

B = int(SColor/65536)

SColor = Int(SColor - (B*65536))

G = Int(SColor/256)

SColor = int(SColor-(G*256))

R = Int(Scolor)

If R < 0 Then R = 0 'Prevent error

If B < 0 Then B = 0

if G < 0 then G = 0

if GetPixel(PICNAME.Hdc,x,y) <> IGNOREDCOLOR then

SetPixel WHERETOCOPYTO.Hdc,x,y,Rgb(

End If

Next Y

Next X

Draws everything EXCEPT that color

However...

2) Maybe... you dont...

Now you would need to look at your R G and B values and say...

If R >= 230 and G >= 230 and b >=230 then

'ignore

else

'Draw (set the pixel.)

endif

If R G and B are all 230 or above, its a whitish point.

So, now you have within 20, or you could say if all

are 200 or above ETC.