Ok Erel, I got it!
The example I do based in CCTV and work very well.
Now I need one thing more to complete the App.
You have any sample to convert RGB into COLOR NAME or simply PROXIMITY NAME?
Something like: RGB2NAME ( res(1),res(2),res(3) )
-------------------------------------------------------------------------------------------------------------------------------
Dim jpeg() As Byte = camEx.PreviewImageToJpeg(Data,100)
Dim In As InputStream
In.InitializeFromBytesArray(jpeg, 0, jpeg.Length)
Dim bmp As Bitmap
Try
bmp.Initialize2(In)
In.Close
Dim PixelColor As Int
PixelColor = bmp.GetPixel(bmp.Width/2,bmp.Height/2)
Dim res(4) As Int
res(0) = Bit.UnsignedShiftRight(Bit.AND(PixelColor, 0xff000000), 24)
res(1) = Bit.UnsignedShiftRight(Bit.AND(PixelColor, 0xff0000), 16)
res(2) = Bit.UnsignedShiftRight(Bit.AND(PixelColor, 0xff00), 8)
res(3) = Bit.AND(PixelColor, 0xff)
Log("ARGB = " & res(0) & "," & res(1) & "," & res(2) & "," & res(3))
pnlColor.Color = Colors.RGB(res(1),res(2),res(3))
Catch
End Try
-------------------------------------------------------------------------------------------------------------------------------