sprockets/src/main/java/net/sf/sprockets/graphics/Bitmaps.java
public static int getByteCount(int width, int height, Config config) {
        int bytes = 0;
        switch (config) {
            case ALPHA_8:
                bytes = 1;
                break;
            case RGB_565:
                bytes = 2;
                break;
            case ARGB_4444:
                bytes = 2;
                break;
            case ARGB_8888:
                bytes = 4;
                break;
        }
        return width * height * bytes;
    }
public static int getByteCount(int width, int height, Config config) {
        int bytes = 0;
        switch (config) {
            case ALPHA_8:
                bytes = 1;
                break;
            case RGB_565:
                bytes = 2;
                break;
            case ARGB_4444:
                bytes = 2;
                break;
            case ARGB_8888:
                bytes = 4;
                break;
        }
        return width * height * bytes;
    }
Get the number of bytes that would be used to store a bitmap with the size, in pixels, and
storage config.