由网友(?虽然已是伤痕累累,但我不曾后悔,因为曾经拥有过你。)分享简介:如何转换位图图像绘制的?How can I convert a Bitmap image to Drawable ?谢谢,法哈推荐答案听起来像是你要使用BitmapDrawableSounds like you want to use BitmapDrawable从文档:A 绘制对象,它包装一个位图,可以...
如何转换位图图像绘制的?
How can I convert a Bitmap image to Drawable ?
谢谢, 法哈
推荐答案
听起来像是你要使用BitmapDrawable
Sounds like you want to use BitmapDrawable
从文档:
A 绘制对象
,它包装一个位图,可以
平铺,拉伸,或对齐。您
可以创建一个 BitmapDrawable
从
文件路径,一个输入流,通过
XML通货膨胀,或从位图
对象。
A Drawable
that wraps a bitmap and can
be tiled, stretched, or aligned. You
can create a BitmapDrawable
from a
file path, an input stream, through
XML inflation, or from a Bitmap
object.
相关推荐
最新文章