Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Bitmap memory question - ARGB_4444 vs RGB_565

Tags:

android

When loading an image into a bitmap, which method consumes more memory (ARGB_4444 vs RGB_565) ?

Thanks.

like image 268
user403015 Avatar asked Apr 22 '11 17:04

user403015


2 Answers

They take the same amount of memory. (See those numbers? They tell you the number of bits for each component (A, R, G, B). Add them up to get the total bits per pixel.)

If you don't need the transparency, though, of those two i'd recommend RGB_565 as it gives you more distinct colors. ARGB_4444 sacrifices some of its color depth in order to provide transparency.

like image 146
cHao Avatar answered Oct 14 '22 22:10

cHao


Both take the same amount of memory. Do not use ARGB_4444 unless you are really sure you need it - it looks horrible.

like image 29
Abhilash Avatar answered Oct 14 '22 21:10

Abhilash