Answers for "android studio center image in canvas"

0

android studio how to move a picture canvas

protected void onDraw(Canvas canvas) {

            super.onDraw(canvas);

            Bitmap myBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.pic1);

            canvas.drawBitmap(myBitmap, 0, 0, null);

        }
Posted by: Guest on January-08-2021

Code answers related to "android studio center image in canvas"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language