E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
BitmapDrawable
Bitmap和Canvas学习笔记
1.从资源中获取位图可以使用
BitmapDrawable
或者BitmapFactory来获取资源中的位图。
xiabo851205
·
2012-09-19 20:00
Android学习 之 Bitmap Drawable byte[] 三者之间的转换以及把数组存入数据库及提取数据重新组合成所需对象,如图像
Android学习之
BitmapDrawable
byte[]三者之间的转换以及把数组存入数据库及提取数据重新组合成所需对象,如图像1.创建数据库表的时候选择存图片的字段类型为blob?
leon90dm
·
2012-09-15 21:00
drawable与bitmap
1、Drawable就是一个可画的对象,其可能是一张位图(
BitmapDrawable
),也可能是一个图形(ShapeDrawable),还有可能是一个图层(LayerDrawable),我们根据画图的需求
liguangzhenghi
·
2012-09-12 17:00
null
float
byte
Matrix
shader
output
Android中Bitmap和Drawable 总结
一、相关概念1、Drawable就是一个可画的对象,其可能是一张位图(
BitmapDrawable
),也可能是一个图形(ShapeDrawable),还有可能是一个图层(LayerDrawable),我们根据画图的需求
lili1985516
·
2012-09-12 13:00
java
android
float
byte
Matrix
shader
Bitmap和Drawable相互转换方法
一、Bitmap转Drawable Bitmapbm=xxx;//xxx根据你的情况获取
BitmapDrawable
bd=
BitmapDrawable
(
wangjia55
·
2012-09-07 16:00
android
2010
Bitmap 和 Drawable之间的转化关系。
.); Drawable drawable = new
BitmapDrawable
(bitmap);转换DrawabletoB
flash129
·
2012-09-07 15:00
Android中屏幕Density对
BitmapDrawable
的影响
很早之前写的文章了,发在这里记录一下。 在之前的某个项目中,出现了一个奇怪的问题,所有应该获取大分辨率图片(HDPI)都取成了中分辨率的图片。查看android源代码及工程代码后,发现问题出现在系统的Density上。 造成问题的原因:1.在manifest.xml中设置了:2.采用Drawable绘图而不是bitmap绘图。3.使用了1.5平台API创建Drawable 造成问题原因的
huazaichang
·
2012-09-05 01:00
PopupWindow简单使用
packagecom.bruce.myapplication; importandroid.app.Activity; importandroid.content.Intent; importandroid.graphics.drawable.
BitmapDrawable
bruceyangjie
·
2012-09-04 19:00
Android Bitmap和Canvas学习笔记
1.从资源中获取位图可以使用
BitmapDrawable
或者BitmapFactory来获取资源中的位图。
ccccdddxxx
·
2012-09-03 15:00
android
null
Class
float
resources
Matrix
Android 图像系列: 将本地图片加载到Drawable
/** *将文件生成位图 *@parampath *@return *@throwsIOException */ public
BitmapDrawable
getImageDrawable(Stringpath
KnowHeart
·
2012-08-31 16:00
android
File
buffer
Path
byte
BT
android 把bitmap转成drawble后宽高不一致的解决方法
.getMetrics(metrics); Resourcesr=newResources(this.getAssets(),metrics,null); DrawablebgDrawble2=new
BitmapDrawable
tianxiangshan
·
2012-08-29 15:00
android
null
resources
Android Bitmap和Canvas学习笔记
1.从资源中获取位图可以使用
BitmapDrawable
或者BitmapFactory来获取资源中的位图。
fyang2007
·
2012-08-28 14:00
android
object
null
float
resources
Matrix
android 滑轮多选
packagecom.glacier.ui; importandroid.app.Activity; importandroid.content.Context; importandroid.graphics.drawable.
BitmapDrawable
wang_yubin
·
2012-08-27 22:00
Bitmap与Drawable的转换
param bitmap * @return */ public static Drawable bitmap2Drawable(Bitmap bitmap) { return new
BitmapDrawable
kylines
·
2012-08-23 18:00
bitmap
转换
drawable
Android中Bitmap和Drawable
一、相关概念1、Drawable就是一个可画的对象,其可能是一张位图(
BitmapDrawable
),也可能是一个图形 (ShapeDrawable)
chen123
·
2012-08-23 11:00
android
Tween动画xml
importandroid.content.Context; importandroid.graphics.Bitmap; importandroid.graphics.Canvas; importandroid.graphics.drawable.
BitmapDrawable
q445697127
·
2012-08-20 11:00
android
null
Class
animation
encoding
android中Drawable总结
Drawable类型:Bitmap a)资源在代码中的类型:
BitmapDrawable
b)资源存储:存储在res
923534069
·
2012-08-18 10:02
android
drawable
android截屏简单引用
importandroid.app.Activity; importandroid.graphics.Bitmap; importandroid.graphics.Color; importandroid.graphics.drawable.
BitmapDrawable
csh159
·
2012-08-17 11:00
android
layout
Class
import
button
encoding
Tween动画java
importandroid.content.Context; importandroid.graphics.Bitmap; importandroid.graphics.Canvas; importandroid.graphics.drawable.
BitmapDrawable
q445697127
·
2012-08-16 17:00
java
null
Class
animation
360
Android中Bitmap,byte[],Drawable相互转化
1、Drawable就是一个可画的对象,其可能是一张位图(
BitmapDrawable
),也可能是一个图形(ShapeDrawable),还有可能是一个图层(LayerDrawable),我们根据画图的需求
守夜之星
·
2012-08-16 15:00
android:Bitmap和Drawable相互转换方法
一、Bitmap转DrawableBitmapbm=xxx;//xxx根据你的情况获取
BitmapDrawable
bd=
BitmapDrawable
(bm);BtimapDrawable是Drawable
beifengdelei
·
2012-08-15 12:00
Drawable
publicabstractclassDrawableDrawable主要是一个抽象类,供其子类实现,重写一些方法,我们最常用的有
BitmapDrawable
,还有其它比如:
BitmapDrawable
ClipDrawableColorDrawableDrawableContainerGradientDrawableInsetDrawableLayerDrawable
song_shi_chao
·
2012-08-15 09:00
String
Class
resources
Android Bitmap和Canvas学习
1.从资源中获取位图可以使用
BitmapDrawable
或者BitmapFactory来获取资源中的位图。
yf210yf
·
2012-08-14 09:00
android
null
Class
float
resources
Matrix
初学Android,图形图像之使用Bitmap和BitmapFactory(二十四)
Bitmap代表一张位图,
BitmapDrawable
里封装的图片就是一个Bitmap对象.把Bitmap对象包装成
BitmapDrawable
对象,可以调用
Bitmapdrawable
的构造器
BitmapDrawable
drawable
lee576
·
2012-08-13 15:59
Android
初学Android,图形图像之使用Bitmap和BitmapFactory(二十四)
Bitmap代表一张位图,
BitmapDrawable
里封装的图片就是一个Bitmap对象.把Bitmap对象包装成
BitmapDrawable
对象,可以调用
Bitmapdrawable
的构造器
BitmapDrawable
drawable
lee576
·
2012-08-13 15:00
android
image
null
Class
button
图形
android去除ImageButton白色边框
background="#00ffffff"效果前后对比: 1//android:adjustViewBounds="true"2 3//android:padding="0dip即可其他:1bitmap=((
BitmapDrawable
encienqi
·
2012-08-12 21:00
android
图片处理大全
一、相关概念1、Drawable就是一个可画的对象,其可能是一张位图(
BitmapDrawable
),也可能是一个图形(ShapeDrawable),还有可能是一个图层(LayerDrawable),我们根据画图的需求
nmgchfzhzhg
·
2012-08-10 13:00
float
byte
resources
Matrix
shader
output
Android Drawable、Bitmap、byte[]之间的转换
1、Drawable-->Bitmap
Bitmapdrawable
2Bitmap(Drawabledrawable){ if(drawableinstanceof
BitmapDrawable
june5253
·
2012-08-03 12:00
android
null
byte
resources
Android Bitmap和Canvas学习笔记
1.从资源中获取位图可以使用
BitmapDrawable
或者BitmapFactory来获取资源中的位图。
mywebstudy
·
2012-08-02 09:00
android
null
Class
float
resources
Matrix
Android Bitmap和Canvas学习笔记
1.从资源中获取位图可以使用
BitmapDrawable
或者BitmapFactory来获取资源中的位图。
zhengjie19
·
2012-07-30 11:00
Bitmap ,
BitmapDrawable
,Drawable,byte[]
BitmapDrawable
是Drawable的子类 Drawable-作为Android平下通用的图形对象,它可以装载常用格式的图像,比如GIF、PNG、JPG,当然也支持BMP,当然还提供一些高级的可视化对象
mywebstudy
·
2012-07-27 13:00
Android中Bitmap和Drawable
一、相关概念1、Drawable就是一个可画的对象,其可能是一张位图(
BitmapDrawable
),也可能是一个图形(ShapeDrawable),还有可能是一个图层(LayerDrawable),我们根据画图的需求
xiedantibu
·
2012-07-26 21:00
android
float
byte
Matrix
output
shader
Android中Bitmap和Drawable
一、相关概念 1、Drawable就是一个可画的对象,其可能是一张位图(
BitmapDrawable
),也可能是一个图形(ShapeDrawable),还有可能是一个图层(LayerDrawable)
jiav_net
·
2012-07-26 21:00
drawable
Android Bitmap转换以及图片的缩放
Bitmap用法总结1、Drawable→BitmapJava代码 Bitmap用法总结1、Drawable→Bitmappublicstatic
Bitmapdrawable
ToBitmap(Drawabledrawable
lostinai
·
2012-07-22 20:00
android ImageButton响应不规则图片
而有时候界面的需要会使用不规则图片,比如扇形,要响应有图片的地方,没图片的地方不响应,今天想了下,实现了,关键代码如下:imgbt=(ImageButton)findViewById(R.id.imgbt01);bitmap=((
BitmapDrawable
lg707415323
·
2012-07-19 19:00
android
解屏,从ImageView中取bitmap
imageView.buildDrawingCache();Bitmapbmap=imageView.getDrawingCache();
BitmapDrawable
mDrawable= (
BitmapDrawable
孙国威
·
2012-07-18 16:39
imageview
Android Bitmap和Canvas学习笔记
1.从资源中获取位图可以使用
BitmapDrawable
或者BitmapFactory来获取资源中的位图。
qjbagu
·
2012-07-18 07:00
android
object
null
float
resources
Matrix
Android Bitmap和Canvas学习笔记
1.从资源中获取位图可以使用
BitmapDrawable
或者BitmapFactory来获取资源中的位图。
mywebstudy
·
2012-07-16 23:00
BitMap、Drawable、inputStream及byte[] 互转
1、Drawable→Bitmappublicstatic
Bitmapdrawable
ToBitmap(Drawabledrawable){ Bitmapbitmap=Bitmap .createBitmap
lostinai
·
2012-07-10 20:00
popuWindow 要求onClick和onTouch 事件 不起作用
弹出依照他的parent的View 我们查的资料一般先是setFocusable(false);父类不能获得焦点 就满足需求了 相反如果起作用首先是setBackGroundDrawable(new
BitmapDrawable
camy88
·
2012-07-09 23:00
onTouch
点击
外部
PopuWindow
Android中Bitmap和Drawable
一、相关概念 1、Drawable就是一个可画的对象,其可能是一张位图(
BitmapDrawable
),也可能是一个图形(ShapeDrawable),还有可能是一个图层(LayerDrawable
huangbo_2020
·
2012-07-05 11:00
drawable
Android中Bitmap和Drawable
引用:http://dyh7077063.iteye.com/blog/970672 1、Drawable就是一个可画的对象,其可能是一张位图(
BitmapDrawable
),也可能是一个图形(ShapeDrawable
wen742538485
·
2012-07-01 01:00
android
drawable
Android Bitmap 与 Drawable之间的转换
转换BitmaptoDrawable Java代码
BitmapDrawable
bitmapDrawable
= (
BitmapDrawable
)bitmap; Drawable drawable
h3c4lenovo
·
2012-06-23 13:00
android
Android在View中载入图片
首先将图片放入res/drawable文件夹下申明bitmap对象bitmap载入有两种方法:bitmap=((
BitmapDrawable
)this.getResources().getDrawable
柚柚控
·
2012-06-21 08:00
Android Bitmap 与 Drawable之间的转换
转换BitmaptoDrawable
BitmapDrawable
bitmapDrawable
=(
BitmapDrawable
)bitmap; Drawabledrawable=(Drawable)
bitmapDrawable
cupidove
·
2012-06-08 16:00
android
image
android之将图片转化为圆形图片
bitmap=((
BitmapDrawable
)imageView1.getDrawable()).getBitmap(); bitmap=getRoundedCornerBitmap(bitmap);
mengweiqi33
·
2012-06-07 17:00
android
float
output
android Bitmap用法总结
Bitmap用法总结1、Drawable→BitmapJava代码 Bitmap用法总结1、Drawable→Bitmappublicstatic
Bitmapdrawable
ToBitmap(Drawabledrawable
jdsjlzx
·
2012-06-05 23:00
android
Stream
float
byte
Matrix
output
Android中利用OnTouchListener在中ImageView中动态显示图片
imageview等控件,并利用setOrientation设置为verticalfinalLinearLayoutlayout2=newLinearLayout(this);2.引用资源中的图片,并生成
BitmapDrawable
awp258
·
2012-06-05 17:00
Android中Bitmap和Drawable和byte[]
一、相关概念1、Drawable就是一个可画的对象,其可能是一张位图(
BitmapDrawable
),也可能是一个图形(ShapeDrawable),还有可能是一个图层(LayerDrawable),我们根据画图的需求
liaoxianming
·
2012-06-04 13:00
Bitmap与Drawable,byte[]之间的转化
android在处理一写图片资源的时候,会进行一些类型的转换,现在有空整理一下,以便于以后随时可用1、drawable---->bitmappublicstatic
Bitmapdrawable
ToBitmap
loongggdroid
·
2012-06-02 22:00
上一页
10
11
12
13
14
15
16
17
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他