<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head>
<card title="Android开发中Bitmap源码实例参考" id="card1">
<p> 游客</p><p>
标题:Android开发中Bitmap源码实例参考<br/>
正文:<br/>
 安卓开发中Bitmap源码实例　　package android.graphics;　　import java.awt.image.BufferedImage;　　import java.io.File;　　import java.io.IOException;　　import java.io.InputStream;　　import javax.imageio.ImageIO;　　public final class Bitmap extends _Original_Bitmap {　　private BufferedImage mImage;　　public Bitmap(File input) throws IOException {　　    super(1, true, null, -1);　　    mImage = ImageIO.read(input);　　}　　public Bitmap(InputStream is) throws IOException {　　    super(1, true, null, -1);　　    mImage = ImageIO.read(is);　　}　　Bitmap(BufferedImage image) {　　    super(1, true, null, -1);　　    mImage = image;　　}　　public BufferedImage getImage() {　　    return mImage;　　}　　// ----- overriden methods　　public enum Config {　　    // these native values must match up with the enum in SkBitmap.h　　    ALPHA_8 (2),　　    RGB_565 (4),　　    ARGB_4444 (5),　　    ARGB_8888 (6);　　    Config(int ni) {　　        this.nativeInt = ni;　　    }　　    final int nativeInt;　　    /* package */ static Config nativeToConfig(int ni) {<br/><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=1737&amp;Page=1">[&lt;&lt;]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=1737&amp;Page=1">[[1]]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=1737&amp;Page=2">[2]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=1737&amp;Page=3">[3]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=1737&amp;Page=8">[&gt;&gt;]</a><br/>
<br/>
<a href="wap.asp?act=Com&amp;id=1737">查看评论(0)</a><br/>
<a href="wap.asp?act=AddCom&amp;inpId=1737">发表评论</a><br/><br/>

<br/>

<br/>
<a href="http://camnpr.com/wap.asp">首页</a>
</p>
</card>
</wml>