Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
因此,在 Android 的 ImageView 中显示图像非常简单。我从图库中挑选了一张图片,将其保存到我的数据库的链接,然后我尝试在 ImageView 中显示它。
我还尝试了使用相机未拍摄的小图像,效果很好。但是每次我用手机相机拍摄的图像时,都会出现错误:
Bitmap too large to be uploaded into a texture (1944x2592, max 2048x2048)
那么如何在超过 3 兆像素相机的日子里在我的 ImageView 中显示图像?
您的位图图像似乎很大,因此加载它时出现问题。请参阅此链接以了解有关有效加载位图的信息。