Mychele
Mychele

Reputation: 53

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?

Upvotes: 5

Views: 2057

Answers (1)

yoah
yoah

Reputation: 7230

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

Upvotes: 4

Related Questions