English 中文(简体)
从黑莓中的 url 显示图像上的缩放抓取功能吗?
原标题:zoom pinch functionality on image shown from a url in blackberry?

我正在准备一个黑莓应用程序,其中我准备 HTTP 连接,并从一个 URL 中显示屏幕上的图像。
现在,我在其它屏幕上的触摸听器上显示此图像, 并想要用该图像在 URL 上执行缩放插件功能。

图像不在我的设备内存中, 直接从 HTTP 连接中显示。 我想在 5. 0+ 设备上运行此应用程序。 请建议我如何做到这一点?

最佳回答

请尝试以下步骤:

  1. 从 URL 获取图像 。

  2. 将图像转换为"http://www.blakberry.com/ developers/docs/5.0.0api/net/rim/device/api/system/EncoddImagi.html" rel=“nofollow” >EncodImaage

  3. 创建 < a href=>" "http://www.blakberry.com/ developers/docs/5.0.0api/net/rim/device/api/ui/extension/container/ ZomomScreen.html" rel="nofollow" @oomScreen 实例并显示它 。


创建和显示一个缩放缩放

private void showImage(EncodedImage image) {
    synchronized (UiApplication.getEventLock()) {
        UiApplication.getUiApplication().pushScreen(new ZoomScreen(image));
    }
}
问题回答

暂无回答


上一篇:
下一篇:


相关问题
How does AlertListener work on Blackberry API 5.0?

Does the AlertListener interface works globally on all alerts on the blackberry device, or does it only work with alerts generated by your application? In other words, can I use this interface to ...

Blackberry - getLocation() method cannot be called from event thread

I want to get the longitude and latitude of device. I used location api to get the longtitude and latitude the problem now I am facing is that I could not call the getLocation() method inside button ...

Expecting End of File Exception in parsing xml data for Blackberry application

I am getting parser exception as "Expecting End of File" while parsing xml data for Blackberry application? How do I fix it?

How can I create a Custom Gauge Field which is better looking?

I need to create a custom gauge field which looks slimmer like a Blue thin line filling in. Any ideas/resources?

CoverageInfo.getCoverageStatus() vs CoverageInfo.isCoverageSufficient(), are they the same?

In trying to determing a if a specific connection is supported, I m cofused about the difference between CoverageInfo.getCoverageStatus() and CoverageInfo.isCoverageSufficient(). For example: // ...

How to buffer audio in Blackberry?

I need to learn how to buffer audio stream from a remote server in Blackberry. There is a sample buffered playback app with Blackberry api but can you tell what url may I use to test the application?

Blackberry push notification implementation

How does one implement a push notification for a blackberry app? I heard that in order to do so I need to purchase a Blackberry Enterprise Server which costs me 1400 per year. Is this true? Where is ...

getting IOException : Peer refused the connection (BlackBerry)

Can anyone tell me why i am getting this IOException:smileytongue:eer refused the connection??? I was testing my application yesterday it was working fine..but today when i opened it i cannot log int ...

热门标签