使用 Java 为 Android 渲染 Microsoft Surface Identity 标签

发布于 2024-08-24 02:53:51 字数 419 浏览 2 评论 0原文

我想为 Android 设备编写一个与 Surface 交互的应用程序,并且我需要能够让 Android 设备显示 Microsoft Surface Identity Tags。我能够使用字节标签文档创建一个类来绘制字节标签< /a> 但我能找到的所有身份标签就是 这个 MSDN 文档 并且它不包含任何有关如何绘制它们的信息。谁能向我指出一些有关如何以编程方式生成身份标签的文档?

I want to write an application for Android devices that interacts with the surface and I need to be able to have the Android device display Microsoft Surface Identity Tags. I was able to create a class to draw the Byte Tags using the Byte Tag documentation but all I could find for the Identity Tags was this MSDN documentation and it doesn't include any information about how to draw them. Can anyone point me to some documentation on how to generate Identity Tags programmatically?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

微凉 2024-08-31 02:53:51

我尝试使用 Surface 读取 Nexus One 上显示的标签,但不起作用。 Surface 根本看不到屏幕上的任何内容。摄像机就是拍不到它。不确定所有手机都一样,但有可能。

I've tried reading tags displayed on my Nexus One with Surface and it doesn't work. The Surface can't see anything on the screen at all. The cameras just don't pick it up. Not sure this would be the same for all phones, but it's likely.

怪我闹别瞎闹 2024-08-31 02:53:51

首先,我不确定您是否可以在显示器上执行此操作。规格说明背景应该是红外吸收的。我不确定手机屏幕是否吸收红外线。

替代文本
(来源:microsoft.com)

  1. 红外线吸收背景

  2. 标签中心有一个红外线反射圆(半径 0.125 英寸) 。该圆圈在 Microsoft Surface 屏幕上定位标签。

  3. 三个红外反射圆(半径为 0.08 英寸)位于每个方向(左、右、下)距离标签中心 0.28 英寸的位置。这些“引导”圆决定标签方向。

通读文档,似乎有一种叫做 身份标签打印

您还可以使用 IdentityTagGenerator 类您的应用程序以编程方式执行此操作。我认为您需要研究这个类并反编译它以了解身份标签是如何打印的。

First of all, I am not sure if you can do this on the display. The specification tells that the background should be infrared absorbing. I am not sure that the phone screen is infrared absorbing.

alt text
(source: microsoft.com)

  1. Infrared-absorbing background

  2. One infrared-reflecting circle (0.125-inch radius) in the center of the tag. This circle locates the tag on the Microsoft Surface screen.

  3. Three infrared-reflecting circles (0.08-inch radius) located 0.28 inches from the center of the tag in each direction (left, right, and down). These "guide" circles determine the tag orientation.

Reading through the documentation, It seems that there is something called an Identity Tag Printing tool in the SDK that will let you print your own identity tags.

Also you can use the IdentityTagGenerator class in your app to do this programatically. I think you will need to study this class and decompile it to understand how Identity Tags are printed.

最后的乘客 2024-08-31 02:53:51

使用 sdk 示例中的 RawImage 来尝试一下!

Use RawImage from sdk samples to try it !

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文