MCPcopy Create free account
hub / github.com/apache/cloudstack / imageRect

Method imageRect

systemvm/agent/noVNC/core/display.js:364–381  ·  view source on GitHub ↗
(x, y, width, height, mime, arr)

Source from the content-addressed store, hash-verified

362 }
363
364 imageRect(x, y, width, height, mime, arr) {
365 /* The internal logic cannot handle empty images, so bail early */
366 if ((width === 0) || (height === 0)) {
367 return;
368 }
369
370 const img = new Image();
371 img.src = "data: " + mime + ";base64," + Base64.encode(arr);
372
373 this._renderQPush({
374 'type': 'img',
375 'img': img,
376 'x': x,
377 'y': y,
378 'width': width,
379 'height': height
380 });
381 }
382
383 videoFrame(x, y, width, height, frame) {
384 this._renderQPush({

Callers 3

_pngRectMethod · 0.80
decodeRectMethod · 0.80
_jpegRectMethod · 0.80

Calls 2

_renderQPushMethod · 0.95
encodeMethod · 0.65

Tested by

no test coverage detected