Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Communication-Mobile android
Title: Android-VieW-Canvas-bitmap Download
  • Category:
  • android
  • Tags:
  • [WORD]
  • File Size:
  • 53kb
  • Update:
  • 2012-11-26
  • Downloads:
  • 0 Times
  • Uploaded by:
  • netwalk
 Description: 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:
 Downloaders recently: [More information of uploader netwalk]
 To Search:
File list (Check if you may need any files):
Android开发者学习笔记——View、Canvas、bitmap.doc
    

CodeBus www.codebus.net