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

Method extractAlpha

shared/java/Bitmap.java:979–981  ·  view source on GitHub ↗

Sets dst to alpha described by pixels. Returns false if dst cannot be written to or dst pixels cannot be allocated. @param dst holds PixelRef to fill with alpha layer @return true if alpha layer was not constructed in dst PixelRef

(@NotNull Bitmap dst)

Source from the content-addressed store, hash-verified

977 * @return true if alpha layer was not constructed in dst PixelRef
978 */
979 public boolean extractAlpha(@NotNull Bitmap dst) {
980 return extractAlpha(dst, null) != null;
981 }
982
983 /**
984 * <p>Sets dst to alpha described by pixels. Returns false if dst cannot

Calls 4

onNativeCallMethod · 0.95
_nExtractAlphaMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by

no test coverage detected