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?
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
More Android Game Development MCQ Questions