While I'm reading data from an HID device
for X
and Y
axis values, getting the X & Y axis data in Hexadecimal
value. How I can covert this hexadecimal values to pixel
v开发者_开发技巧alues.
Do you mean a hex string? like '5A'.
if so ive found sucess with this
function HexToInt(HexNum: string): LongInt;
begin
Result:=StrToInt('$' + HexNum) ;
end;
精彩评论