Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does createBitmap (int width, int height, Bitmap.Config config) fills the Bitmap?

How does createBitmap (int width, int height, Bitmap.Config config) fills the Bitmap? I want to create a Bitmap with given width and height, and I don't want to generate a casual Color array. I found that this method http://developer.android.com/reference/android/graphics/Bitmap.html#createBitmap(int,%20int,%20android.graphics.Bitmap.Config) create a Bitmap without any source. How does this method fill the pixel of the bitmap?

like image 632
Mychele Avatar asked Oct 02 '22 11:10

Mychele


1 Answers

With zeros, which is black for RGB_565 or transparent for ARGB_888

like image 66
yoah Avatar answered Oct 07 '22 18:10

yoah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!