本文共 348 字,大约阅读时间需要 1 分钟。
一张1280*740 RGBA4448的图片占内存大小 (M)?
2048*1024*(4+4+4+8)/(8*1024*1024)
解析:第一步:内存中图片大小必须为2^n
第二步:RGBA8888是4位8bit 像素点:4*8 位数*颜色深度
第三步:内存大小 numBtyes
= width*height*bitPerPixel/8
= width*height*bytesPerPixel
2048*1024*4*4/(8*1024*1024) = 4M
480*320的图片 RGBA8888,占多少内存(M)?
512*512*4*8/(8*1024*1024) = 1M
1000*740的图片 RGBA8884,占多大内存?
1024*1024*28/(8*1024*1024)
转载地址:http://gftin.baihongyu.com/