阅读背景:

android.graphics.Bitmap.Config 的枚举值 ALPHA_8,ARGB_4444,ARGB_8888,RGB_565代表什么_hectorguo的专栏

来源:互联网 
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) {
            return sConfigs[ni];
        }

        private static Config sConfigs[] = {
            null, null, ALPHA_8, null, RGB_565, ARGB_4444, ARGB_8888
        };
    }public enum Config {
        // these nat



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: