Bitmap manipulation

I think I'm going to have a few questions, so will just add as I go ...

If I have a Sprite_Character that has a bitmap, and I put this in one of the functions:

this.oldBitmap = this.bitmap
am I correct in saying that I now have two variables that point to the same bitmap object?  Or does it clone it, so I can do stuff to one without affecting the other?
it will become two variable that point to same bitmap.

edit:

even this:

var a = [1,3,4];var b = a;b[0] = 10;console.log(a); // [10,3,4]so it's not cloned.

if array / some object we can use JsonEx.makeDeepCopy(objectyouwanttocopyhere)

but i think bitmap cannot be processed that way.
Estriole pretty much covered it. But if you want to clone the bitmap, I think would have to create a new Bitmap equal to the old Bitmaps width / height then just do a block transfer from the old to the new.
Thought so.  Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/bitmap-manipulation.52504/