MCPcopy Create free account
hub / github.com/JetBrains/skija / allocN32Pixels

Method allocN32Pixels

shared/java/Bitmap.java:493–495  ·  view source on GitHub ↗

Sets ImageInfo to width, height, and native color type; and allocates pixel memory. Sets ImageInfo to ColorAlphaType#PREMUL. Calls reset() and returns false if width exceeds 29 bits or is negative, or height is negative. Returns false if allocation fails. Use to create Bitmap that matches

(int width, int height)

Source from the content-addressed store, hash-verified

491 * @return true if pixel storage is allocated
492 */
493 public boolean allocN32Pixels(int width, int height) {
494 return allocN32Pixels(width, height, false);
495 }
496
497 /**
498 * Sets ImageInfo to width, height, and native color type; and allocates

Callers 1

skImageMethod · 0.95

Calls 2

allocPixelsMethod · 0.95
makeN32Method · 0.95

Tested by

no test coverage detected