Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我从HID deviceforX和Y轴值读取数据时,获取 X 和 Y 轴数据的Hexadecimal值。我如何将这个十六进制值转换为pixel值。
HID device
X
Y
Hexadecimal
pixel
你的意思是十六进制字符串?像'5A'。 如果是这样,我找到了成功
function HexToInt(HexNum: string): LongInt; begin Result:=StrToInt('$' + HexNum) ; end;