android – createBitmap(int width,int height,Bitmap.Config config)如何填充Bitmap?

前端之家收集整理的这篇文章主要介绍了android – createBitmap(int width,int height,Bitmap.Config config)如何填充Bitmap?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

createBitmap(int width,int height,Bitmap.Config config)如何填充Bitmap?
我想创建一个给定宽度和高度的Bitmap,我不想生成一个随意的Color数组.我发现这个方法http://developer.android.com/reference/android/graphics/Bitmap.html#createBitmap(int,%20android.graphics.Bitmap.Config)创建了一个没有任何源的Bitmap.
这个方法如何填充位图的像素?

最佳答案
使用零,RGB_565为黑色或ARGB_888为透明
原文链接:https://www.f2er.com/android/430958.html

猜你在找的Android相关文章