# PixelGrabber Pixel

• Proga uses PixelGrabber to scan pickles:

``````int pixels[]=new int[width*height];
PixelGrabber grabber= new PixelGrabber(pic,0,0,width,height,pixels,0,width);
try{
grabber.grabPixels();
}catch(InterruptedException e){}
``````

If we move the pixels now, we'll get:

for black: -16777216

for white: -1

for green: -16744704

Can you tell me who knows how these numbers are coming up, and why are they psychic?

• Let's turn these numbers straight 16:

``````-16777216 = FF000000 (черный)
-1 = FFFFFFFF (белый)
-16744704 = FF007F00 (зеленй)
``````

We'll look at the last six grand of the 16-riar symbols.

``````-16777216 = FF000000 ~ 000000 (черный)
-1 = FFFFFFFF ~ FFFFFF (белый)
-16744704 = FF007F00 ~ 007F00 (зеленй)
``````

After that, it becomes clear that only they change and the previous two do not change. It's supposed to be an alpha channel. FF means 255, it's not visible. Finding: This is ARGB code where the first two values are alpha, the second two are red, the third two are green, the fourth two are blue.

And they are negative because the number (binary number) appears to be marked, and if the first battle is 1, the number is negative if the first battle is zero, the number is positive. Details: https://ru.wikipedia.org/wiki/%D0%94%D0%BE%D0%BF%D0%BE%D0%BB%D0%BD%D0%B8%D1%82%D0%B5%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9_%D0%BA%D0%BE%D0%B4_%28%D0%BF%D1%80%D0%B5%D0%B4%D1%81%D1%82%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5_%D1%87%D0%B8%D1%81%D0%BB%D0%B0%29

2

2

2

2

2

2

2

2

2

2

2

2

2

2

2