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

Method setAlpha

shared/java/Paint.java:288–291  ·  view source on GitHub ↗

Replaces alpha, leaving RGB unchanged. An out of range value triggers an assert in the debug build. a is a value from 0 to 255. a set to zero makes color fully transparent; a set to 255 makes color fully opaque. @param a alpha component of color @return this

(int a)

Source from the content-addressed store, hash-verified

286 * @return this
287 */
288 @NotNull @Contract("_ -> this")
289 public Paint setAlpha(int a) {
290 return setAlphaf(a / 255f);
291 }
292
293 /**
294 * Sets color used when drawing solid fills. The color components range from 0 to 255.

Callers 1

executeMethod · 0.80

Calls 1

setAlphafMethod · 0.95

Tested by 1

executeMethod · 0.64