MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / pixelsToBytes

Method pixelsToBytes

tools/png2bmp.js:528–532  ·  view source on GitHub ↗
(count)

Source from the content-addressed store, hash-verified

526 delete this.file;
527 }
528 pixelsToBytes(count) {
529 if (this.pixelFormat === Bitmap.MonochromeAligned)
530 return ((count + 31) >> 5) << 2;
531 return super.pixelsToBytes(count);
532 }
533}

Callers 3

runMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected