RGB24 能用Bitmap显示吗?

解决方案 »

  1.   

    能啊 不过需要API-LEVEL8 2.2的SDK GOOGLE才出了这API,以前就得自己换算
      

  2.   

    看了一下2.1中的SkBitmap , 貌似是不支持24位颜色表的。
      

  3.   

    Skia二维图形引擎库里面是支持RGB565的
    enum Config {
            kNo_Config,         //!< bitmap has not been configured
            kA1_Config,         //!< 1-bit per pixel, (0 is transparent, 1 is opaque)
            kA8_Config,         //!< 8-bits per pixel, with only alpha specified (0 is transparent, 0xFF is opaque)
            kIndex8_Config,     //!< 8-bits per pixel, using SkColorTable to specify the colors
            kRGB_565_Config,    //!< 16-bits per pixel, (see SkColorPriv.h for packing)
            kARGB_4444_Config,  //!< 16-bits per pixel, (see SkColorPriv.h for packing)
            kARGB_8888_Config,  //!< 32-bits per pixel, (see SkColorPriv.h for packing)
            kRLE_Index8_Config,        kConfigCount
        };
    LZ可以看一下SkBitmap里面的代码
    external/skia/include/core/SkBitmap.h