private Bitmap getBitmap(int layer) {
        Bitmap bitmap = layeredBitmap[layer];
        if (bitmap == null) {
            createBitmapAndCanvas(layer);
            bitmap = layeredBitmap[layer];
        }
        return bitmap;
    }
private Bitmap getBitmap(int layer) {
        Bitmap bitmap = layeredBitmap[layer];
        if (bitmap == null) {
            createBitmapAndCanvas(layer);
            bitmap = layeredBitmap[layer];
        }
        return bitmap;
    }
private Bitmap getBitmap ( int layer ) { Bitmap bitmap = layeredBitmap [ layer ] ; if ( bitmap == null ) { createBitmapAndCanvas ( layer ) ; bitmap = layeredBitmap [ layer ] ; } return bitmap ; }
Get the bitmap for the layer index

@param layer layer index
@return bitmap
Get the bitmap for the layer index