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

Method _pngRect

systemvm/agent/noVNC/core/decoders/tightpng.js:13–22  ·  view source on GitHub ↗
(x, y, width, height, sock, display, depth)

Source from the content-addressed store, hash-verified

11
12export default class TightPNGDecoder extends TightDecoder {
13 _pngRect(x, y, width, height, sock, display, depth) {
14 let data = this._readData(sock);
15 if (data === null) {
16 return false;
17 }
18
19 display.imageRect(x, y, width, height, "image/png", data);
20
21 return true;
22 }
23
24 _basicRect(ctl, x, y, width, height, sock, display, depth) {
25 throw new Error("BasicCompression received in TightPNG rect");

Callers

nothing calls this directly

Calls 2

_readDataMethod · 0.80
imageRectMethod · 0.80

Tested by

no test coverage detected