From: KingKong
I don't know if its done on purpose but simba(and scar) return the wrong integer color values. Eg: I pick a color from the rs screen and the pixel has rgb values of (123, 122, 121). The integer color value of this pixel should be 8092281(hex value of 7B7A79), but simba(and scar) return 7961211(rgb value of 121, 122, 123. Which means the red and blue values are swapped).
Simba Code:
program new;
begin
writeln(GetColor(1109, 164));
writeln(RGBToColor(145, 146, 217));
end.
Results:
[BANANA]
Compiled successfully in 16 ms.
14258833
14258833
Successfully executed.
[/BANANA]
C++ Code:
#include <iostream>
#include <windows.h>
using namespace std;
COLORREF centerColor;
POINT loc;
int main()
{
HDC hdc = GetDC(GetDesktopWindow()) ;
loc.x = 1109;
loc.y = 164;
centerColor = GetPixel(hdc, loc.x, loc.y);
cout<<centerColor;
ReleaseDC(GetDesktopWindow(), hdc);
}
Results:
[BANANA]
14258833
[/BANANA]
Seems to be right to me :S Are you sure your pixel isn't changing ever so slightly because after all it is runescape/jagex..