mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Use Image constructor instead of creating img element.
This commit is contained in:
parent
ceebbcaa63
commit
f1498093e1
@ -66,12 +66,12 @@ export class DtoMessageHandler {
|
||||
}
|
||||
|
||||
if (captureFrame.EndOfFrame) {
|
||||
let completedFrame = new Blob(this.ImagePartials);
|
||||
let completedFrame = new Blob(this.ImagePartials, { type: "image/jpeg" });
|
||||
|
||||
this.ImagePartials = [];
|
||||
|
||||
var url = window.URL.createObjectURL(completedFrame);
|
||||
var img = document.createElement("img");
|
||||
let url = window.URL.createObjectURL(completedFrame);
|
||||
let img = new Image(captureFrame.Width, captureFrame.Height);
|
||||
img.onload = () => {
|
||||
UI.Screen2DContext.drawImage(img,
|
||||
captureFrame.Left,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user