Code example for BitmapFactory.Options

Methods: decodeStream

0
				//ÕâÀïµÃ³öµÄ½áÂÛÊÇRGB888¸ñʽÒÔRGB_565µÄ¸ñʽ½øÐмÓÔØ 
				Log.d("BitmapText", "bobrgb888.png format: "+bob565.getConfig());//»ñÈ¡µÄÊÇbob565µÄÑÕÉ«±àÂë¸ñʽ
				 
				inputStream = assetManager.open("bobargb8888.png");
				//Ó¦¸ÃÊÔןãÇå³þ options 
				BitmapFactory.Options options = new BitmapFactory.Options();
				options.inPreferredConfig = Bitmap.Config.ARGB_4444;
				bob4444 = BitmapFactory.decodeStream(inputStream, null, options);//°´ÕÕÖ¸¶¨ÑÕÉ«¸ñʽ¼ÓÔØ
 				 
				inputStream.close();
				Log.d("BitmapText", "bobargb888.png format: "+ bob4444.getConfig());
				 
			}catch(IOException e){
				 
			}finally{ 
				 
			} 
			 
		} 
		 
		protected void onDraw(Canvas canvas){