Karol159
Karol159

Reputation: 134

Does drawing bitmap on canvas with matrix transformation, effects bitmap?

I have a Bitmap object that I want to draw on canvas with some Matrix transformation. I'm using

canvas.drawBitmap(myBitmap, myMatrix, null);

Does such drawing effects object myBitmap? In other words, drawing after that (transformed drawing) myBitmap, without myMatrix, will it be drawn without any transformation? or will it have that former transformation?

Upvotes: 0

Views: 198

Answers (1)

android developer
android developer

Reputation: 116402

Drawing on the bitmap will only occur by giving the bitmap to the CTOR of the canvas .

drawBitmap won't change the bitmap given in the parameters.

Upvotes: 1

Related Questions