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

Method setImageInfo

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

335 * @see <a href="https://fiddle.skia.org/c/@Bitmap_setInfo">https://fiddle.skia.org/c/@Bitmap_setInfo</a>
336 */
337 public boolean setImageInfo(@NotNull ImageInfo imageInfo) {
338 _imageInfo = null;
339 return setImageInfo(imageInfo, 0);
340 }
341
342 /**
343 * <p>Sets width, height, ColorAlphaType, ColorType, ColorSpace, and optional

Callers 3

executeMethod · 0.95
executeMethod · 0.80
drawPixelRefMethod · 0.80

Calls 3

onNativeCallMethod · 0.95
_nSetImageInfoMethod · 0.95
getPtrMethod · 0.95

Tested by 2

executeMethod · 0.76
executeMethod · 0.64