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

Method drawImage

systemvm/agent/noVNC/core/display.js:420–430  ·  view source on GitHub ↗
(img, ...args)

Source from the content-addressed store, hash-verified

418 }
419
420 drawImage(img, ...args) {
421 this._drawCtx.drawImage(img, ...args);
422
423 if (args.length <= 4) {
424 const [x, y] = args;
425 this._damage(x, y, img.width, img.height);
426 } else {
427 const [,, sw, sh, dx, dy] = args;
428 this._damage(dx, dy, sw, sh);
429 }
430 }
431
432 autoscale(containerWidth, containerHeight) {
433 let scaleRatio;

Callers 13

_scanRenderQMethod · 0.95
flipMethod · 0.80
copyImageMethod · 0.80
paintMethod · 0.80
handleBitmapMethod · 0.80
doHandleMethod · 0.80
doHandleMethod · 0.80
getFrameBufferJpegMethod · 0.80
getTilesMergedJpegMethod · 0.80
paintMethod · 0.80
copyTileMethod · 0.80
getFrameBufferJpegMethod · 0.80

Calls 1

_damageMethod · 0.95

Tested by

no test coverage detected