MCPcopy Index your code
hub / github.com/HumbleUI/Skija / allocN32Pixels

Method allocN32Pixels

shared/java/Bitmap.java:519–521  ·  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

517 * @return true if pixel storage is allocated
518 */
519 public boolean allocN32Pixels(int width, int height) {
520 return allocN32Pixels(width, height, false);
521 }
522
523 /**
524 * Sets ImageInfo to width, height, and native color type; and allocates

Callers 7

skImageMethod · 0.95
localClipBoundsMethod · 0.80
deviceClipBoundsMethod · 0.80
swapMethod · 0.80
getSurfaceNullMethod · 0.80

Calls 2

allocPixelsMethod · 0.95
makeN32Method · 0.95

Tested by 6

localClipBoundsMethod · 0.64
deviceClipBoundsMethod · 0.64
swapMethod · 0.64
getSurfaceNullMethod · 0.64