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

Method extractAlpha

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

876 * @return true if alpha layer was not constructed in dst PixelRef
877 */
878 public boolean extractAlpha(@NotNull Bitmap dst) {
879 return extractAlpha(dst, null) != null;
880 }
881
882 /**
883 * <p>Sets dst to alpha described by pixels. Returns false if dst cannot

Callers 2

drawAlphaMethod · 0.80

Calls 3

onNativeCallMethod · 0.95
_nExtractAlphaMethod · 0.95
getPtrMethod · 0.95

Tested by

no test coverage detected