MCPcopy Create free account
hub / github.com/HumbleUI/Skija / setImageInfo

Method setImageInfo

shared/java/Bitmap.java:363–366  ·  view source on GitHub ↗

Sets width, height, ColorAlphaType, ColorType, ColorSpace. Frees pixels, and returns true if successful. imageInfo.getAlphaType() may be altered to a value permitted by imageInfo.getColorSpace(). If imageInfo.getColorType() is ColorType#UNKNOWN, imageInfo.getAlphaType() is set to

(@NotNull ImageInfo imageInfo)

Source from the content-addressed store, hash-verified

361 * @see <a href="https://fiddle.skia.org/c/@Bitmap_setInfo">https://fiddle.skia.org/c/@Bitmap_setInfo</a>
362 */
363 public boolean setImageInfo(@NotNull ImageInfo imageInfo) {
364 _imageInfo = null;
365 return setImageInfo(imageInfo, 0);
366 }
367
368 /**
369 * <p>Sets width, height, ColorAlphaType, ColorType, ColorSpace, and optional

Callers 3

executeMethod · 0.95
baseMethod · 0.80
drawPixelRefMethod · 0.80

Calls 4

onNativeCallMethod · 0.95
_nSetImageInfoMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 2

executeMethod · 0.76
baseMethod · 0.64