Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在BlackBerry Storm上捕获签名时出现问题_Blackberry_Blackberry Storm - Fatal编程技术网

在BlackBerry Storm上捕获签名时出现问题

在BlackBerry Storm上捕获签名时出现问题,blackberry,blackberry-storm,Blackberry,Blackberry Storm,详细信息:我正在开发一款黑莓应用程序,其中一个功能是签名捕获。为此,我使用给定的示例代码 我面临一个小问题 我的应用程序的屏幕由一个标题、两个标签和VerticalManager中的SignatureField组成 message.getMovePoints(1, xPoints, yPoints, null); 给出绝对点(相对于屏幕) 及 由于该触摸,正在绘制相对于字段的路径,并且图形不同步 我的问题是:有没有办法从中获得相对点 message.getMovePoints(1,xPoint

详细信息:我正在开发一款黑莓应用程序,其中一个功能是签名捕获。为此,我使用给定的示例代码

我面临一个小问题

我的应用程序的屏幕由一个标题、两个标签和
VerticalManager中的
SignatureField
组成

message.getMovePoints(1, xPoints, yPoints, null);
给出绝对点(相对于屏幕)

由于该触摸,正在绘制相对于字段的路径,并且图形不同步

我的问题是:有没有办法从中获得相对点
message.getMovePoints(1,xPoints,yPoints,null)
?或者有其他方法解决此问题吗?

您应该能够将几个函数组合在一起,将坐标转换为字段偏移:

int YourClass#translateToFieldX(Field theField, int x);
int YourClass#translateToFieldY(Field theField, int y);
或者,您可以创建一个函数,该函数接受整个数组并返回一个新的转换点数组。这取决于你

您对实现这些功能感兴趣的功能有:

Field#getLeft() and Field#getContentLeft()
Field#getTop() and Field#getContentTop()
希望这有帮助

Field#getLeft() and Field#getContentLeft()
Field#getTop() and Field#getContentTop()