我正在尝试将 spritesheet 图像加载为位图,图像分辨率为 3598 x 3598,大小为 1.21MB。但是当我尝试从以下代码加载它时
AssetManager assets = this.getAssets();
try {
InputStream inputStream = assets.open("spritesheet.png");
BufferedInputStream bufferedStream = new BufferedInputStream(inputStream);
Bitmap bitMap = BitmapFactory.decodeStream(bufferedStream);
} catch (Exception e) {}
我收到OOM(内存不足)异常:'(,请指导我该怎么办??