Javascript 如何使用pixi.js导出具有背景色的图像?

Javascript 如何使用pixi.js导出具有背景色的图像?,javascript,canvas,pixi.js,Javascript,Canvas,Pixi.js,我这样做 ... this.app = new PIXI.Application({ width: this.options.width, height: this.options.height, resolution: 1, antialias: true, // forceCanvas: true, }); this.app.renderer.backgro

我这样做

...
this.app = new PIXI.Application({
            width: this.options.width,
            height: this.options.height,
            resolution: 1,
            antialias: true,
            // forceCanvas: true,
        });
this.app.renderer.backgroundColor = 0xeef1f0;
...
...
this.app.renderer.plugins.extract.image(this.app.stage, 'image/jpeg', 1))
...
我得到一张没有背景色的照片

我该怎么做才能得到背景色的图片

this.app = new PIXI.Application({
    ...
    backgroundColor: 0xeef1f0
});