Location:
Search - getbitmap.d
Search list
Description: 动态加载位图等资源文件,有利于节省程序运行时所用资源。-dynamically loaded bitmap documents, and other resources, to save operating procedures used by the resources.
Platform: |
Size: 2501632 |
Author: 江篱 |
Hits:
Description: 此软件是一个集利用摄像头拍照、录像功能于一体的小软件,目前可以实现实时对摄像头采集到的信息进行监控 定时抓拍照片、定时录像 设置摄像头采集信息的各种参数,如:采集照片大小,流量,录像后的文件是否压缩以及压缩方式等.-This software is a use of cameras to take photographs, video functions of small software, currently available real-time on camera the information collected to monitor the timing to capture photographs, regular video cameras set up collection of information of various parameters, such as: Acquisition photo size, traffic, video after the documents, such as compression and compression.
Platform: |
Size: 380928 |
Author: 杨生 |
Hits:
Description: PowerBuilder 连接摄像头,附加源代码,可以运行-PowerBuilder connected camera, additional source code, you can run
Platform: |
Size: 381952 |
Author: linvava |
Hits:
Description: BitMap、View以及Canvas是我们Ophone程序中常用到的类。本日以feisky的学习笔记呈现,通过实例讲解View&Canvas等等。
1. 从资源中获取位图
可以使用BitmapDrawable或者BitmapFactory来获取资源中的位图。
当然,首先需要获取资源:
Resources res=getResources()
使用BitmapDrawable获取位图
使用BitmapDrawable (InputStream is)构造一个BitmapDrawable;
使用BitmapDrawable类的getBitmap()获取得到位图;
// 读取InputStream并得到位图
InputStream is=res.openRawResource(R.drawable.pic180)
BitmapDrawable bmpDraw=new BitmapDrawable(is)
Bitmap bmp=bmpDraw.getBitmap()
或者采用下面的方式:
-BitMap, View and Canvas is we use class often Ophone program. This day to feisky study notes appear, through the examples explain View&Canvas and so on.
1. Get a bitmap from resources
Can use BitmapDrawable or BitmapFactory to obtain resources of the bitmap.
Of course, we first need to obtain resources:
Resources res = getResources ()
Use BitmapDrawable get a bitmap
Use BitmapDrawable (InputStream is constructing a BitmapDrawable
Use BitmapDrawable kind getBitmap () get get a bitmap
//read InputStream and get a bitmap
InputStream is = res. OpenRawResource (R.d rawable. Pic180)
BitmapDrawable bmpDraw = new BitmapDrawable (is)
Bitmap BMP = bmpDraw. GetBitmap ()
Or use the following ways:
Platform: |
Size: 54272 |
Author: netwalk |
Hits: