Bitmap.blt, difference between newer and older nw.js

Before I upgrade nw.js, I use this code to smooth image.

bmp._context.imageSmoothingEnabled = true;
bmp._context.imageSmoothingQuality = 'high';
bmp.blt(anotherbmp, x, y, .....

I'm using this to draw thumbnail images of my level select menu. All images are a full sized screenshots and their thumbnail images are 200x134 in size.
This used to work nicely. But it stopped working after I upgrade nw.js to recent version. The thumb images are no longer smoothed.

I did some further research and found mv Bitmap uses canvas to store image data.
And Bitmap.blt uses CanvasRenderingContext2D.drawImage.

In older version, smoothing works on both image and canvas. But now it won't work if the source is another canvas.

New:
1719822883155.png


Old:
1719822956112.png



A workaround is using a fake Bitmap object for source. Like this:

Code:
function loadFakeBitmapForBlt(path){
  var fakeBmp;
  fakeBmp={_canvas:new Image()};
  fakeBmp._canvas.src=path;
  fakeBmp._canvas.bmp=fakeBmp;
  fakeBmp._canvas.onload=function(){this.bmp.width=this.width;this.bmp.height=this.height;};
  return fakeBmp;
}
Just because I'm not sure from your post: are you asking a question? Need help with something?

Or are you just posting information in case there's someone else who's using the same specific lower level graphics function and upgrading their NW.js? (to what version? you never say)
Oh I'm now using 0.86.0, and mv has 0.29.0
I'm not sure what kind of post is this, it is not exactly a bug to report.
😅

Original thread: https://forums.rpgmakerweb.com/threads/bitmap-blt-difference-between-newer-and-older-nw-js.169936/