是否可以在 BlackBerry 应用程序中截取当前屏幕的屏幕截图?我的屏幕上有一个按钮,当我单击该按钮时,我想发送一封包含当前屏幕截图的电子邮件。
您可以使用以下方法获取显示屏幕的屏幕截图
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;
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)