本文介绍了如何从RGB Android中值来创建图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在机器人
以创建从 RGB
值的图像。
i want to create an image from RGB
values in android
.
值例: R = 255,G = 76,B = 87
那么可以请你告诉我的步骤来创建从 RGB
值的形象?
then can you please tell me the steps to create an image from RGB
values?
推荐答案
创建一个白色透明的图像,然后将其转换成可变的位图,则位图改变颜色,然后重新设置位图ImageView的。
create a white color transparent image then convert it into mutable bitmap then change color of bitmap and again set bitmap to imageview.
这篇关于如何从RGB Android中值来创建图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!