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

Method getAlpha

shared/java/Paint.java:259–261  ·  view source on GitHub ↗

Retrieves alpha from the color used when stroking and filling. @return alpha ranging from 0, fully transparent, to 255, fully opaque

()

Source from the content-addressed store, hash-verified

257 * @return alpha ranging from 0, fully transparent, to 255, fully opaque
258 */
259 public int getAlpha() {
260 return Math.round(getAlphaf() * 255f);
261 }
262
263 /**
264 * <p>Replaces alpha, leaving RGB unchanged. An out of range value triggers

Callers

nothing calls this directly

Calls 1

getAlphafMethod · 0.95

Tested by

no test coverage detected