android - 屏幕截图 :get Bitmap from Textureview and display in imageview android

标签 android android-imageview android-textureview

谁能建议我如何从 Textureview 获取 Bitmap 并在 Imageview 中显示

我使用了以下链接,但没有帮助。
Advice on Android TextureView and Bitmap Rendering

最佳答案

Bitmap bitmap = yourTextureView.getBitmap();
yourImageView.setImageBitmap(bitmap);

关于android - 屏幕截图 :get Bitmap from Textureview and display in imageview android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43361300/

相关文章:

android - 在 camera2 api 中预览拉伸(stretch)

android - Google Play - 应用程序包的签名 key 错误

android - “colorButtonNormal”在按下状态下工作

android - Picasso - 如果在加载图像时发生任何错误,则隐藏 ImageView

android - 如何将移动视觉 API 与 TextureView 和 Camera 一起使用

android - 在 RecyclerView 中播放视频 - 滚动到屏幕外时播放/暂停视频

android - 使 Android WebView 不存储 cookie 或密码

android - Android 中的 Listview 缩放和动画

android - 如何在ImageView中显示位图后获取位图的大小

android - 如何使 320x480 ImageView 填满整个模拟器屏幕(尺寸为 320x480 mdpi)?