MZ Resize bitmap.

So, I have the following code that generates a bitmap based on a tile id. The problem is, I need to scale it up. I tried looking at Game_Picture to see how they handled scaling, but it was just setting a variable. I know previous versions, like ace, had resize_blt, but I can't seem to find anything similar here. How do I resize?

if (this.tileId > 0) {
var tileset = $dataTilesets[$gameMap.tilesetId()];
var page = Math.floor(this.tileId / 256);
var tilesetName = tileset.tilesetNames[page + 5];
var index = this.tileId - (page * 256);
var N = $gameMap.tileWidth(), M = $gameMap.tileHeight();
var ox = index % 8;
var oy = Math.floor(index / 8);
if (oy > 16) {
ox += 16;
oy -= 16;
}
ox *= N;
oy *= M;
var bitmap = new Bitmap(N, M);
bitmap.blt(ImageManager.loadTileset(tilesetName), ox, oy, N, M, 0, 0);
return bitmap;
}
So, I have the following code that generates a bitmap based on a tile id. The problem is, I need to scale it up. I tried looking at Game_Picture to see how they handled scaling, but it was just setting a variable. I know previous versions, like ace, had resize_blt, but I can't seem to find anything similar here. How do I resize?

if (this.tileId > 0) {
var tileset = $dataTilesets[$gameMap.tilesetId()];
var page = Math.floor(this.tileId / 256);
var tilesetName = tileset.tilesetNames[page + 5];
var index = this.tileId - (page * 256);
var N = $gameMap.tileWidth(), M = $gameMap.tileHeight();
var ox = index % 8;
var oy = Math.floor(index / 8);
if (oy > 16) {
ox += 16;
oy -= 16;
}
ox *= N;
oy *= M;
var bitmap = new Bitmap(N, M);
bitmap.blt(ImageManager.loadTileset(tilesetName), ox, oy, N, M, 0, 0);
return bitmap;
}
Look at the definition for blt - it can already do resizing. The last two (optional) arguments specify the width and height in destination, defaulting to the width and height in source if not specified.
Oh, I'm dumb. I thought those were for cropping.

Original thread: https://forums.rpgmakerweb.com/threads/resize-bitmap.170615/