问题描述
当我执行屏幕捕获时,它捕获了div,但是该div有一些图像,但没有捕获它。
本地图像即将到来,但没有显示具有网络URL的图像。
<div #screen class="screenCapture">
<img [src]="hotelImage" class="img-fluid">
</div>
construction(private captureService: NgxCaptureService){ }
ngAfterViewInit(): void {
debugger;
setTimeout(() => {
if(this.hotelImage){
this.captureService.getimage(this.screen.nativeElement,true).then(img => {
imageCaptureApi(img)
});
}
},0);
}
imageCaptureApi(img) {
const bookingImageCaptureReq = {
"bId": this.id,"imageB64": img
}
this.hotelservice.bookingImageCapture(bookingImageCaptureReq).subscribe((response: any) => {
console.log(response);
});
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)