MCQs > IT & Programming > Android Game Development > Suppose you want to draw an image, roboimage.png to coordinates (20, 20). The image is already present in the respective folder. Which of the following is the correct syntax to do so?

Android Game Development MCQs

Suppose you want to draw an image, roboimage.png to coordinates (20, 20). The image is already present in the respective folder. Which of the following is the correct syntax to do so?

Answer

Correct Answer:

protected void onDraw(Canvas canvas) {

canvas.drawBitmap(BitmapFactory.decodeResource(getResources(),

R.drawable.roboimage), 20, 20, null);


Explanation:

Note: This Question is unanswered, help us to find answer for this one

Android Game Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Android Game Development MCQ Questions

search

Android Game Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it