以当前的屏幕截图黑莓 [英] Taking screenshot of the current screen in BlackBerry
本文介绍了以当前的屏幕截图黑莓的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能把当前屏幕的截图在黑莓应用程序?我有一个按钮,在我的屏幕上,当我点击按钮,我想与当前屏幕的截图发送电子邮件。
Is it possible to take a screenshot of the current screen in a BlackBerry Application? I have a button in my screen, when I click the button I want to send an email with the screenshot of the current screen.
推荐答案
您可以使用下面的方法来获取所显示的屏幕截图
You can use the following method to get a screenshot of the displayed screen
public static Bitmap getScreenShot() {
// get the current screen .
Bitmap bitmap;
bitmap = new Bitmap(Display.getWidth(), Display.getHeight());
Display.screenshot(bitmap);
// return the screen shot
return bitmap;
}
这篇关于以当前的屏幕截图黑莓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文