Briefing Android Knowledge

Which of these is the correct code to create a Bitmap object using the file res/drawable/image.png?

Which of these is the correct code to create a Bitmap object using the file
res/drawable/image.png?

A.
Bitmap img = BitmapFactory.decodeFile(R.drawable.image),

B.
Bitmap img = BitmapFactory.decodeResource(R.drawable.image);

C.
Bitmap img = new Bitmap(R.drawable.image);

D.
Bitmap img = (Bitmap)GraphicsFactory.decodeResouces(R.drawable.image);

Explanation: