Android - ancho y alto de bitmap sin cargarlo

Necesito obtener el ancho y la altura de un mapa de bits, pero al usar esto se obtiene una excepción de falta de memoria:

    Resources res=getResources();
    Bitmap mBitmap = BitmapFactory.decodeResource(res, R.drawable.pic); 
    BitmapDrawable bDrawable = new BitmapDrawable(res, mBitmap);

    //get the size of the image and  the screen
    int bitmapWidth = bDrawable.getIntrinsicWidth();
    int bitmapHeight = bDrawable.getIntrinsicHeight();

Leí la solución a la preguntaObtenga ancho de mapa de bits y altura sin cargar en la memoria Pero, ¿cuál sería el inputStream aquí?

Respuestas a la pregunta(2)

Su respuesta a la pregunta